470,594 Members | 1,499 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Converting a tuple to a list

Hi all ..

I'm trying to using the map function to convert a tuple to a list, without

I would like to have a lonely line that performs the same as loop of the
next script:

# Conveting tuple -list

tupla = ((1,2), (3,4), (5,6))

print tupla

lista = []
for a in tupla:
for b in a:
print lista

Any idea ?

Thanks ...

# Gabriel

Apr 8 '08 #1
0 907

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Yomanium Yoth Taripošt II | last post: by
10 posts views Thread by Stefan Seefeld | last post: by
1 post views Thread by Ajay | last post: by
31 posts views Thread by metiu uitem | last post: by
10 posts views Thread by robin | last post: by
9 posts views Thread by Steven Bethard | last post: by
11 posts views Thread by Louis.Soninhu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.