[Tutor] Splitting a string into a list.

alan.gauld@bt.com alan.gauld@bt.com
Thu, 25 Jul 2002 17:41:52 +0100


> On Thu, 25 Jul 2002, Troels Leth Petersen wrote:
> > Isn't there a built-in that does the following:
> > >>> liste
> > ['l', 'o', 't', 't', 'o']

Oops my copy solution doesn't work, sorry, 
I should have read the problem statement more slowly.

> The list() builtin will turn any sequence-like thing into a 
> list of its elements.  

Indeed.

map(None, thing)

works too.

Alan g.