Lesson 5: Listing and looping
Outline:
- Recap Lesson 4
- indexing and slicing strings
str
loops withord
/chr
- Exercise 0
- Other handy string functionality
s.split()
- Exercise 1
- Python
list
s as sequences- loops
- basic operations
- Recap so far – prep for Quiz #1
Explore after class:
- More practice with
list
s - Common looping patterns
- for-index vs. for-each
- Exercise 4
Want more practice?
Reading assignment (to be completed by the next class):
- Zelle sections 5.3 (pp. 136-138)
- Zelle sections 11.2.1 (pp. 366-367)