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

Rearrange contents in chapter 8 #31

Open
webartifex opened this issue Feb 17, 2021 · 1 comment
Open

Rearrange contents in chapter 8 #31

webartifex opened this issue Feb 17, 2021 · 1 comment

Comments

@webartifex
Copy link
Owner

webartifex commented Feb 17, 2021

https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/develop/08_mfr/01_content.ipynb

Move parts on list comprehensions into chapter 7 where list constructors are covered (or after the part on list methods because of .append()).

Move the nested and Cartesian product examples into exercises on their own.

Convert "Example: Averaging all even Numbers in a List (revisited)" section into a new section on "Streaming data".

Move tuple comprehensions part up into generator section.

Create new section on generator functions (make a unified generator section with expression and function as sub-section).
Note that the numeric example is not the same as in the first content file.

@webartifex
Copy link
Owner Author

webartifex commented Mar 8, 2021

Include Fibonacci example for generators

Advantage: instead of single value, calculate entire Fibonacci sequence. Only works with iterative version.

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

No branches or pull requests

1 participant