Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 675 Bytes

File metadata and controls

21 lines (17 loc) · 675 Bytes

Week 3 – Input + Guess the Number (1–10)

Objectives

  • Use input() to get player input
  • Convert text to number using int()
  • Validate input (keep asking until it's valid)
  • Introduce randomness with random.randint

Concept explanation

  • input() is like Scratch “ask and wait”.
  • int() turns text into a number.

Lesson flow (60–75 min)

  1. (10 min) Warm-up: change Week 2 points
  2. (10 min) Explain input() and int()
  3. (25 min) Guided build: guess game
  4. (15 min) Student challenge: add attempts and hints
  5. (5 min) Wrap: student explains validation loop

Success criteria

  • Game works even if user types something wrong (letters or out-of-range).