KraftDiner <[EMAIL PROTECTED]> wrote:
> [(0, 1), (2, 3), (4, 5), (6, 7)]
> 
> Which is a list of tuples.. I wanted a tuple of tuples...

>>> odd = (1,3,5,7)
>>> even = (0,2,4,6)
>>> all = zip(even, odd)
>>> all
[(0, 1), (2, 3), (4, 5), (6, 7)]
>>> tuple(all)
((0, 1), (2, 3), (4, 5), (6, 7))

Cheers,
  --Jan Niklas
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to