list to tuple

zxo102 zxo102 at gmail.com
Fri Aug 12 06:05:43 CEST 2005


Hi,
   I got several dynamic lists a1, b1, c1, .... from a python
application such as
   a1 = [1,5,3,2,5,...], the len(a1) varies. Same to b1, c1, ....

   With python, I would like to reorganize them into a tuple like

   t1 = ((a1[0],b1[0],c1[0],...),(a1[1],b1[1],c1[1],...),...)

  Anybody knows how to do that. Thanks for your help.

Ouyang




More information about the Python-list mailing list