webartifex / intro-to-python

An intro to Python & programming for wanna-be data scientists
https://code.webartifex.biz/alexander/intro-to-python
MIT License
882 stars 87 forks source link

Rearrange contents in chapter 4 #30

Open webartifex opened 3 years ago

webartifex commented 3 years ago

https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/develop/04_iteration/03_content.ipynb

Move the part on "Indefinite Loops" to the top. Change the game logic a bit and include the continue statement already.

Consider removing the part on the map-filter-reduce paradigm entirely (the numeric example is not the same as in chapter 8 part 1 !)

Mention that in operator does exactly the shown linear search logic.

webartifex commented 3 years ago

New small exercise: "Calculating PI with Leibniz' formula"

cf. "Classic Computer Science Problems with Python", pp. 19