How do you convert a string into a list?
Say the string is like text = \"a,b,c\". After the conversion, text == [\'a\', \'b\', \'c\'] and h
text = \"a,b,c\"
text == [\'a\', \'b\', \'c\']
In case you want to split by spaces, you can just use .split():
.split()
a = 'mary had a little lamb' z = a.split() print z
Output:
['mary', 'had', 'a', 'little', 'lamb']