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 8289cff commit 9b19239Copy full SHA for 9b19239
MiniPy.py
@@ -23,7 +23,7 @@ def do_cumprod(lst):
23
return toReturn
24
25
if use_logsum:
26
- return [exp(el_log) for el_log in cumsum((log(el) for el in lst))]
+ return [exp(el_log) for el_log in cumsum([log(el) for el in lst])]
27
else:
28
return do_cumprod(lst)
29
0 commit comments