Problem
Input:
input_list = [(1, 2), (1, 4), (1, 6)]
Expected Output:
(3, 12)
I've tried
print(reduce(lambda a, b: (a[0] + b[0], a[1] + b[1]), input_list))
and
print(reduce(lambda (a, b), (c, d): (a + c, b + d), input_list))
both of which fail due to invalid syntax.