def Map(func, l): for i in range(len(l)): l[i] = func(l[i]) return l print(sum(Map(lambda x: x**2, [2, 3])))