Lesson 29 of 79 · 15 minutes
while loops: Bucket Brigade
Keep carrying water until the tank is full. Your code decides when to stop.
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
- Repeating with while
- Three parts of a loop
- Keeping count of the passes
- Inside the loop, or after it
- A loop that never ends
Each idea opens with a short narrated video, about 3 minutes in all. Then you put it to work in the game.
The six levels
- A Bigger Tank Change it
- Count to 5 Copy and type
- How Many Buckets? Fill the gap
- Progress Report Write it
- Going Nowhere Fix it
- Any Size of Tank Boss level
The levels go from changing one word, to writing the code on your own. The boss level changes every time you play.
New to Python? Start with the free games in Module 1.