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