function to convert sentences into list of words in python code example
Example 1: python convert a string to a list of words
>>> "Please split this string".split()
['Please', 'split', 'this', 'string']
Example 2: python how to turn a word into a list
wordString = "foobar"
list(wordString)
>>> ['f', 'o', 'o', 'b', 'a', 'r']