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 fb32f23 commit ea05bd9Copy full SHA for ea05bd9
06-map-filter-reduce/mfr9.py
@@ -16,5 +16,7 @@
16
print(total)
17
18
# Ultimately adding numbers together like this is not a great use of `reduce()`
19
-# Because built-ins like "sum" and the "add" module in "operator" exist.
20
-# See https://stackoverflow.com/a/33772246/10267529 for details.
+# because built-ins like "sum" and the "add" module in "operator" exist, but it
+# gives you some idea of how cumulative functions work.
21
+# See https://stackoverflow.com/a/33772246/10267529 and
22
+# https://realpython.com/python-reduce-function/ for more.
0 commit comments