Python Quest  /  Mission 9
Loading Python...
World 1 · Mission 9

Broken Control Room

The control room software has been damaged. The program looks like Python and will even parse correctly, but its logic is wrong. Find and fix the bugs so Bolt can restore all three control systems.

Control Room

Three essential systems are offline.

⚠️ Debugging required
The damaged program contains three logic errors. Repair the code before it can be executed.
Systems restored
0 / 3
Navigation
🧭
OFFLINE
Power
⚡
OFFLINE
Communications
📡
OFFLINE
Control room offline.
Mission objective

Debug the broken program

The program is meant to repair three systems using a while loop.

Three bugs are hidden in the code. Read each line carefully. Ask what value the program should start with, when the loop should continue, and how the counter should change.
Start with systems_remaining = 3
Continue while systems_remaining > 0
Reduce the counter and restore all 3 systems

Check your understanding

After fixing the loop condition, why must systems_remaining decrease each time?

Mission complete!

You found and repaired logical errors in a Python program. Debugging is a core part of programming, not just something we do when things go wrong.

Broken Python code

3 bugs detected