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

Repair Workshop

Bolt has arrived at the repair workshop with three damaged systems. Instead of writing the same repair instruction repeatedly, create a reusable Python function and call it whenever a system needs repair.

Bolt Repair Bay

One function can repair several systems.

Systems repaired
0 / 3
Navigation
🧭
DAMAGED
Power
⚡
DAMAGED
Scanner
📡
DAMAGED
Repair sequence waiting.
Mission objective

Create reusable instructions

A function lets you give a name to a block of instructions so you can use those instructions again later.

The function repair_system() already contains the repair instruction. Call the function three times to repair all three systems.

Define repair_system()
Call the function exactly three times
Repair all three systems

Check your understanding

What is the main advantage of putting the repair instruction inside a function?

Mission complete!

You created a reusable function and called it several times instead of repeating the same repair instruction.

Your Python code

Call the function three times