extracting tuples from a list
Michael Husmann
michael.husmann at teleatlas.com
Mon Jul 3 10:17:35 EDT 2000
Is there a simple way to extract two elements from a list
that has a size of 2n? I going this way:
while list:
i, k = list.pop(0), list.pop(0)
Is there a better solution?
Thanks
Michael
--
Michael Husmann
p.A. Tele Atlas Deutschland GmbH, Postfach 77 77 77, D-31132
Hildesheim
PHONE: +(49) 5121 49 4876, FAX: +(49) 5121 49 2866
e-mail: Michael.Husmann at teleatlas.com
More information about the Python-list
mailing list