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\']
I usually use:
l = [ word.strip() for word in text.split(',') ]
the strip remove spaces around words.
strip