Extended zip() for lists
florian.reiser at ra-bc.de
Fri Jun 9 02:12:37 EDT 2006
a big THANKS for this tip. This is exactly what I was looking for.
"gene tani" <gene.tani at gmail.com> schrieb im Newsbeitrag
news:1149772973.297794.68720 at i39g2000cwa.googlegroups.com...
> Florian Reiser wrote:
>> I have 4 lists: a, b, c and d
>> Out of this 4 lists I want to build a table (e.g. list of lists):
>> a1|b2| |d2
>> You see: the lists are not equally sized.
>> Is there a command which fills up the shorter lists with blanks?
>> Like an enhanced zip() command, maybe?
> map(None, list1, list2, list3)
More information about the Python-list