>>> text = 'a b c' >>> text = text.split(' ') >>> text [ 'a', 'b', 'c' ]
# Python code to convert string to list def Convert(string): li = list(string.split(" ")) return li # Driver code str1 = "Geeks for Geeks" print(Convert(str1))