sentence to list of words in python code example
Example: Python | Spilt a sentence into list of words
# Python3 program to Convert single
# indexed list into multiple indexed list
def convert(lst):
return (lst[0].split())
# Driver code
lst = ["Geeks For geeks"]
print( convert(lst))