how do i change from string to list

Jorgen Grahn jgrahn-nntq at algonet.se
Sun Oct 24 14:13:55 EDT 2004


On 24 Oct 2004 11:05:28 -0700, john <miodio67 at hotmail.com> wrote:
> I have the following 
> 
> s = "spot" 
> 
> which I would like to change to a list

>>> list('spot')          
['s', 'p', 'o', 't']

/Jorgen

-- 
  // Jorgen Grahn <jgrahn@       Ph'nglui mglw'nafh Cthulhu
\X/                algonet.se>   R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list