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

Power Station

Bolt has reached the power station, but his battery is only partly charged. Use Python variables to calculate the energy he needs and bring him to full power.

Bolt's Energy

Your Python variables control Bolt's power level.

🤖
Energy 2 / 5
Bolt needs more energy.
Mission objective

Use variables

Bolt starts with 2 units of energy. The variable charge contains another 3 units.

Use the charge variable to calculate Bolt's new energy level.

Use the charge variable
Update energy using the variable
Power Bolt to exactly 5 / 5

Check your understanding

If energy starts at 2 and charge = 1, what would the new energy value be?

Mission complete!

You used variables to store values and update Bolt's energy.

Your Python code

Replace ___ with the correct variable