Answers for "Try Googling to find out how to convert a sentence into a list of words."

0

Try Googling to find out how to convert a sentence into a list of words.

my_sentence = "Hello My name is monkey."

new_sentence = my_sentence.split() # converts a sentence into a list of words

print(new_sentence)

>>> ["Hello", "My", "name", "is", "monkey."]
Posted by: Guest on March-04-2022

Code answers related to "Try Googling to find out how to convert a sentence into a list of words."

Browse Popular Code Answers by Language