I was wondering is there a way of creating a list of cumulative sums in Python without using any of the itertools or by just using for loops and if statements?
Asked
Active
Viewed 52 times
0
-
1could you give a sample input and output – The6thSense Oct 26 '15 at 12:20
-
2What's wrong with the answers given in [How to find the cumulative sum of numbers in a list?](http://stackoverflow.com/q/15889131/953482)? – Kevin Oct 26 '15 at 12:21
-
Input ([0, 1, 2, 3]) – simonman Oct 26 '15 at 12:22
-
2@simonman Don't add extra information in comments; edit it into your question – khelwood Oct 26 '15 at 12:22