Answers for "convert sentence to list of words python"

0

convert sentence to list of words python

# Python3 program to Convert single
# indexed list into multiple indexed list
 
def convert(lst):
    return ([i for item in lst for i in item.split()])
     
# Driver code
lst =  ['Geeksforgeeks is a portal for geeks']
print( convert(lst))
Posted by: Guest on February-24-2022

Code answers related to "convert sentence to list of words python"

Python Answers by Framework

Browse Popular Code Answers by Language