Sep 14: if, elif, else Statements
Meet in King 248
Learning Objectives
After today's class, you should be able to:
- Describe the behavior of
if,elif, andelse. - Evaluate boolean expressions with comparison operators (
<,>,<=,>=,==,!=). - Evaluate boolean expressions that involve comparisons with
and,or, andnot.
Lesson Outline
Presentation [10 min]
- Comparison operators and boolean operators (and, or, not)
Mini Lecture [10 min]
- if-elif-else statements
- Indenting after a colon
Practice [30 min]
- Complete the Sep 14 assignment on Runestone
- If you finish early, solve other problems on Runestone
Your To-Do List
- Read the Week 4 guide and begin studying