def running_sum(iterable):
    s = 0
for value in iterable:
    s += value
yield s
running_sum([1, 2, 3, 4, 5])
list(running_sum([1, 2, 3, 4, 5]))
a function that takes a list of integers as a parameter and returns a list of running totals