str to list py code example
Example 1: python convert string to list
fruit = 'apple oranges banans'
newlist = fruit.split()
print(newlist)
Example 2: convert string to list python
word = "Hey Hello world"
print(list(word))
# output
# ["Hey", "Hello", "world"]