Lesson 7: Making decisions
Outline:
- Questions?
- Recap Lesson 5 and Lesson 6
- Functions and variable scope: Exercise 1
- Functions and lists: Exercise 2
- Making choices
- Boolean expressions in Python
- Exercise 3
- Making decisions:
if/elif/else - Exercise 4
- Project proposals
Explore after class:
- Even more practice with functions:
- functions that return multiple values: Exercise 5
- functions that modify their parameters: Exercise 6
What’s next
Upcoming events/assessments:
- CS Bits and Bytes Thursday at 3:30pm in Anderson 329: CS Summer Research Students
- Project partner selection is due tonight
- Homework assignment 3 is all about functions and conditionals and due this Thursday
What you should do now:
- The readings (see below)
- Work on Assignment 3 Parts 1 and 2, and read the rest
Reading assignment (to be completed by the next class):
- Zelle sections 6.1–6.3 (pp. 165–179)