substituting list comprehensions for map()

Jon P. jbperez at
Mon Nov 2 08:54:16 CET 2009

I'd like to do:

resultlist = operandlist1 + operandlist2

where for example


and resultlist will become [6,6,6,6,6].  Using map(), I
can do:

map(lambda op1,op2: op1 + op2, operandlist1, operandlist2)

Is there any reasonable way to do this via a list comprehension ?

More information about the Python-list mailing list