Agenda

  1. Warm-up: Tech Headlines
  2. Same problem, both ways: write it recursively, write it with a loop, time both, and say honestly which one you would hand to a partner
  3. Where recursion costs you: depth, repeated work, and the limit Python enforces so your machine does not fall over
  4. The Structure Study, day 3 — working period: write the one shared test input all three of your versions will have to survive, awkward cases included
  5. Midpoint look back: Showing Growth — read your own first journal entry out loud, to yourself

Things to do before our next class

  • Journal: one place where the loop is the honest answer, and one where the recursion genuinely reads better.