how do i change from string to list

john miodio67 at hotmail.com
Sun Oct 24 14:05:28 EDT 2004


I have the following 

s = "spot" 

which I would like to change to a list

l = ['s','p','o','t']

I have tried  l = eval(s) but I get the error 

File "<string>", line 1, in ?
NameError: spot

thank you all for your time



More information about the Python-list mailing list