►
Run
def func(a, b): return a + b x = [2, 4, 6, 8] y = [0.1, 0.2, 0.3, 0.4] result = map(func, x, y) for item in result: print(item)
Output