convert sentence to words python 1

convert sentence to words python

def convert(sentence):
    return (sentence.split())

Here is what the above code is Doing:
1. We are creating a function called convert.
2. The function takes in a sentence as a parameter.
3. The function splits the sentence into words and returns the list of words.

Similar Posts