Saturday, 31 August 2013

Split strings by 2nd space

Split strings by 2nd space

Input :
"The boy is running on the train"
Output expected:
["The boy", "boy is", "is running", "running on", "on the", "the train"]
What is the easiest solution to achieve this in python.

No comments:

Post a Comment