In Python 2 this code is OK:
f = lambda (m, k): m + k m = [1,2,3,4] k = [5,6,7,8] print(map(f, zip(m, k)))
but in Python 3 the following
Just use
map(f, m, k)
Note that f can be
f
from operator import add map(add, m, k)