Skip to content

Commit ea05bd9

Browse files
committed
expand comment
1 parent fb32f23 commit ea05bd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

06-map-filter-reduce/mfr9.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616
print(total)
1717

1818
# 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.
19+
# because built-ins like "sum" and the "add" module in "operator" exist, but it
20+
# 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

Comments
 (0)