Tuples ? How to ?

Mickael ABBAS abbasmicNOSPAM at utc.fr
Tue Apr 3 07:15:27 EDT 2001


Hi,

Just a question:
How to make a imbricated tuple as, for example:
((1,10),(2,20),(3,30))
when we don't know the size and we have only the two lists:
[1,2,3] and
[10,20,30]
I tried with a loop (for...) but I obtain only something like that:
(((1,10),(2,20)),(3,30))

Thanks




More information about the Python-list mailing list