zip list with different length

MC XX.XmcX at XX.XmclaveauX.com
Wed Apr 4 04:29:50 EDT 2007


Hi!

Brutal, not exact answer, but:

a = range(5)
b = range(3)
print zip(a+[None]*(len(b)-len(a)),b+[None]*(len(a)-len(b)))





-- 
@-salutations

Michel Claveau





More information about the Python-list mailing list