import functools numbers = [175, 50, 25] total = functools.reduce(lambda a, b: a - b, numbers) print(total)