Using for... for multiple lists

gene.tani at gmail.com gene.tani at gmail.com
Sun Mar 6 11:13:17 EST 2005


If sequences are not same length:

zip truncates to length of shortest input sequence

map(None, seq1, seq2) pads to length of longest seq.

(can't remember what itertools.izip() does)




More information about the Python-list mailing list