Lesson 37 of 79 · 15 minutes

Project: Guess the Number: Guess the Number

Your third real program: the computer picks a number, and the player keeps guessing until they find it.

This game is part of the full course.You own the full course. Unlock all 79 Python coding games for $9, once.Opening the game…
Unlock for $9Play now

What you'll learn

Each idea opens with a short narrated video, about 2 minutes in all. Then you put it to work in the game.

The six stages

  1. Pick a Number Project stage
  2. One Guess Project stage
  3. Higher or Lower Project stage
  4. Keep Guessing Project stage
  5. Count the Guesses Project stage
  6. Five Chances Project stage

This is a project: you build one complete program in stages, and finish it on your own.

New to Python? Start with the free games in Module 1.