Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrections to Chapter 8 (Advanced Programming) #73

Closed
jack89roberts opened this issue Jan 26, 2022 · 0 comments · Fixed by #78
Closed

Corrections to Chapter 8 (Advanced Programming) #73

jack89roberts opened this issue Jan 26, 2022 · 0 comments · Fixed by #78

Comments

@jack89roberts
Copy link
Contributor

jack89roberts commented Jan 26, 2022

  • 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 mean sum

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant