You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
08_01_functional_programming: Function defined under this statement computes a sum not a mean:
We very often want to loop with some kind of accumulator (an intermediate result that we update), such as when finding a meansum
08_01_functional_programming: Replace all instances of sys.float_info.min (smallest positive value) with -sys.float_info.max (most negative value).
08_01_functional_programming: The defined accumulate function has arguments in a different order than Python's reduce, which is introduced later. Would be clearer to use the same order as the built-in.
The text was updated successfully, but these errors were encountered:
08_01_functional_programming
: Function defined under this statement computes a sum not a mean:08_01_functional_programming
: Replace all instances ofsys.float_info.min
(smallest positive value) with-sys.float_info.max
(most negative value).08_01_functional_programming
: The definedaccumulate
function has arguments in a different order than Python'sreduce
, which is introduced later. Would be clearer to use the same order as the built-in.The text was updated successfully, but these errors were encountered: