By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

Converting a tuple to a list

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.