Lesson 11: Telling the truth
Outline:
- Questions?
- Recap Lesson 10
breakandcontinuekeywords- Exercise 1
- Logical operators
and,or,not- truth tables
- Exercises 2+3
- Working with strings
- basic operations
indexfunction- Exercise 6: indexing and slicing
- Recap so far – prep for Quiz #1
Explore after class:
- More practice with truth tables: Exercises 4+5
- More reading (optional but super helpful):
- more string functions: Zelle section 8.5 (pp. 251–255)
- string formatting: Zelle section 8.6 (pp. 255–260)
- Read about
chr/ordin Ch. 8, then try Exercise 7
Want more practice?
- Codingbat:
- using Booleans:
- practice with lists/strings:
- lists
- mixing
ifwith strings/lists: count_hi, cat_dog, common_end, array_count9, string_match
What’s next
Upcoming events/assessments:
- CS Bits and Bytes tomorrow at 3:30pm in Anderson 329: Alex Dixon ‘01 (at Adobe) on HDR photo editing
- Homework assignment 4 is due tomorrow
- Quiz #2 will be on Friday (in Olin 149)
What you should do now:
- The readings (see below)
- Finish Assignment 4
Reading assignment (to be completed by the next class):
- Zelle sections 8.1–8.4 (pp. 235–250)
- Zelle section 8.7 (pp. 261)