Module 4: Making Decisions
Make a program behave differently depending on what's happening. 8 Python coding games, each with short narrated videos and six levels.
This module is part of the full course. Unlock all 79 games for $9, or try Module 1 free.
- 21
True, False and comparisons · Balance Scale
Ask questions with two possible answers. A big scale tips to show you what Python thinks. - 22
if · Rain or Shine
A villager only takes an umbrella when it's raining. Your code makes that decision, whatever the weather. - 23
if and else · Fork in the Road
A traveller reaches a fork. One path or the other, never both: your code decides. - 24
More choices: elif · Mail Sorter
Parcels ride along the belt, and your code sends each one down the right chute. - 25
and, or, not · Night Guard
You're on the night shift. Open the gate only for visitors who meet all the rules. - 26
Decisions inside decisions · Theme Park Rides
Run the gate at the biggest ride in the park. Check each rider's height, then age, then ticket. - 27
When code runs but is wrong · Test Kitchen
The oven runs without a single complaint, and still burns the food. Find out why, by testing it. - 28
Project: Quiz Show · Quiz Show
Your second real program: a quiz that asks questions, checks answers, keeps score and rates the player.