How do I split a string into a list of words?

Given a string sentence, this stores each word in a list called words:

words = sentence.split()

Leave a Comment