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
- A real game
- Comparing numbers from input
- Higher or lower
- Guessing until it's right
- Counting the guesses
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
- Pick a Number Project stage
- One Guess Project stage
- Higher or Lower Project stage
- Keep Guessing Project stage
- Count the Guesses Project stage
- 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.