Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 803 Bytes

File metadata and controls

22 lines (18 loc) · 803 Bytes

Week 6 – Functions (make your own blocks) + “Game Pack”

Objectives

  • Write functions using def
  • Use parameters (light)
  • Refactor earlier games into reusable functions
  • Build a simple menu to choose a game

Concept explanation

  • A function is a “My Block” from Scratch, but in Python.
  • Functions help us reuse code and keep things clean.

Lesson flow (60–75 min)

  1. (10 min) Warm-up: change number of rounds in Week 5
  2. (15 min) Explain def and calling a function
  3. (30 min) Guided build: menu + two games
  4. (15 min) Student challenge: add a third mini-game or add replay
  5. (5 min) Milestone check: student explains variable/loop/if/function

Success criteria

  • Student can run the menu, pick a game, play, and return.
  • Student can point to where functions start/end.