Session Details

Week 3, Session 8 — Tue Mar 18

Reading

  1. 6.5-6.7, 7.1-7.3
    (26 pages)

HW Due

  1. HW 7

Topics

  1. Functions that return results
  2. Decision structures ("if" statements)

Outline

  1. [10 min] Hand-back quizzes, discuss questions
  2. [10 min] Returning values
  3. [20 min] Three Squares exercise
  4. [5 min] Break
  5. [10 min] Intro. to if statements
  6. [5 min] Comparison, including experimenting with strings
  7. [5 min] if-else statements
  8. [10 min] Nesting vs. if-elif-else statements
  9. [30 min] countFailPass exercise

Return values and if statements

HW Assigned

  1. HW 8