Extended zip() for lists
Duncan Booth
duncan.booth at invalid.invalid
Thu Jun 8 09:26:00 EDT 2006
Florian Reiser wrote:
> Hello,
>
> 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):
>
> a|b|c|d
> ---------------------------
> a1|b1|c1|d1
> 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?
>
> Regards
> Florian Reiser
>
I posted a function to do this back in January. See:
http://groups.google.co.uk/group/comp.lang.python/browse_frm/thread/f424f63bfdb77c4/88d1541e632adfdd?lnk=st&rnum=1#88d1541e632adfdd
More information about the Python-list
mailing list