We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52b9e01 commit cdf45f3Copy full SHA for cdf45f3
MiniPy.py
@@ -10,7 +10,7 @@
10
11
12
def cumsum(lst):
13
- return [sum(lst[:i]) for i in range(len(lst))]
+ return [sum(lst[:i]) for i in range(1, len(lst)+1)]
14
15
16
def cumprod(lst, use_logsum=False):
0 commit comments