ojixzzz / Split word by word python

23 Oct 2017 at 15:03

1 string = "this is a string"
2 ssplit = string.split()
3 for word in ssplit:
4 print (word)
1 this
2 is
3 a
4 string

Comments (0)