convert a list to a string

Francis Avila francisgavila at yahoo.com
Fri Jan 9 15:30:17 EST 2004


Bart Nessux wrote in message <3FFE21A4.7040208 at hotmail.com>...
>Forgot to say thanks! the number[0] thing is great!

Here's something a bit more mysterious, but sometimes convenient, e.g. with
struct (which always returns a tuple):

>>> a, = [1] #note trailing comma
>>> a
1

--
Francis Avila




More information about the Python-list mailing list