Tuple to list?

Gary Herron gherron at islandtraining.com
Sat Nov 15 12:28:09 EST 2003


On Saturday 15 November 2003 09:11 am, Evan Patterson wrote:
> How do you convert a tuple to a list?
> Thanks in advance.
>

Like this:
>>> t = (1,2,3)
>>> list(t)
[1, 2, 3]
>>>

Gary Herron







More information about the Python-list mailing list