import functools numbers = [175, 50, 25] total = functools.reduce(lambda total, rightValue: total + rightValue, numbers) print(total)