cumulative_sums

mathtools.cumulative_sums(sequence, start=0)

Cumulative sums of sequence.

>>> mathtools.cumulative_sums([1, 2, 3, 4, 5, 6, 7, 8], start=None)
[1, 3, 6, 10, 15, 21, 28, 36]

Returns list.