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\']
Example 1
>>> email= "myemailid@gmail.com" >>> email.split() #OUTPUT ["myemailid@gmail.com"]
Example 2
>>> email= "myemailid@gmail.com, someonsemailid@gmail.com" >>> email.split(',') #OUTPUT ["myemailid@gmail.com", "someonsemailid@gmail.com"]