Session Details

Week 3, Session 8 — Mon Sep 19

Prep

  1. Chapter 7 (26 pages)

HW Due

  1. HW 7

Topics

  1. Decision structures (if statements)
  2. Boolean constants and variables (a.k.a. flags)
  3. Boolean operators: and, or, not

Outline

  1. [5 min] Questions
  2. [10 min] Intro. to if statements
  3. [5 min] Comparison, including experimenting with strings
  4. [5 min] if-else statements
  5. [10 min] Nesting vs. if-elif-else statements
  6. [40 min] countPassFail exercise, HW 8

Resources

  1. Slides

HW Assigned

  1. HW 8