LPTHW – Lesson 29, 30, 31, 32
Now this is finally getting interesting! These lessons introduced:
- if, elif and else
- range()
- for loops
- lists
- append()
Lesson 31 also included a very basic version of a text game, which is fun to modify per the study drills (the “bear room” got my creativity flowing!)
There were also 2x other takeaways from these lessons:
- range() is inclusive of the first, but NOT inclusive of the second argument, so range(0, 10) = 1 to 9.
- There was some good advice about using the Python interpreter to experiment, and it helped me to retain the information on lists. I will keep this in mind for the later chapters.
I am blowing through this book much faster than expected, but I seem to remember the latter half of the book slowing down a LOT as the exercises become longer and more complex.