how to get words from a string in python

sentence = "How are you feeling today"
sentence = sentence.split() # this returns list of words
# output = ["How", "are", "you", "feeling", "today"]

Here is what the above code is Doing:
1. We create a string variable called sentence.
2. We call the split() method on the string variable sentence.
3. The split() method returns a list of words.
4. We store the list of words in a variable called output.