code: def accumulate(iterable):
    " Return series of accumulated sums. "
    iterator = iter(iterable)
    sum_data = next(iterator)
    yield sum_data
    for el in iterator:
      sum_data += el
      yield sum_datf accumulate(iterable):
    " Return series of accumulated sums. "
    iterator = iter(iterable)
    sum_data = next(iterator)
    yield sum_data
    for el in iterator:
      sum_data += el
      yield sum_data
docs: Return series of accumulated sums.