In koans/about_generators.py, the function sum_it is uninteresting. It would be much better if it was:
def sum_it(self, seq):
value = 0
for num in seq:
# The local state of 'value' will be retained between iterations
value += num
yield value # the yield is now inside the for
In koans/about_generators.py, the function sum_it is uninteresting. It would be much better if it was: