I want my Python function to split a sentence (input) and store each word in a list. My current code splits the sentence, but does not store the words as a list. How do I do
I think you are confused because of a typo.
Replace print(words) with print(word) inside your loop to have every word printed on a different line
print(words)
print(word)