Python Quest  /  Final Mission
Loading Python...
World 1 · Mission 10

Final Mission: Escape Launch

Bolt has reached the final escape route. Five energy crystals are scattered across five sectors, but an obstacle blocks sector 2. Write a complete program that navigates the route, collects enough energy and launches Bolt to safety.

This is your capstone challenge. There are no missing-code placeholders this time. Use what you learned in the earlier missions to build the solution.

Escape Route

Collect five crystals and reach the launch pad.

Launch energy
0 / 5
Sector 0
⬆️
💎
WAITING
Sector 1
⬆️
💎
WAITING
Sector 2
🧱
💎
OBSTACLE
Sector 3
⬆️
💎
WAITING
Sector 4
🏁
💎
LAUNCH ROUTE
🚀
Escape Launcher
LOCKED: 5 ENERGY REQUIRED
Escape sequence waiting.
Final challenge

Build the complete solution

Your mission plan
  1. Start with energy = 0.
  2. Keep the supplied collect_crystal() function.
  3. Loop through five sectors using range(5).
  4. At sector 2, turn right. Otherwise, move.
  5. In every sector, call collect_crystal() and add 1 to energy.
  6. After the loop, launch using robot.launch(energy).
Use a variable, function and for loop
Make the correct if/else decision at sector 2
Collect all 5 crystals and build 5 energy
Successfully launch Bolt

Final check

In your final program, what different jobs do the for loop and if/else statement perform?

World 1 Complete

Python Quest completed!

You guided Bolt through ten missions using variables, input, conditions, loops, functions, combined logic and debugging. You have now written and repaired real Python programs to solve increasingly complex problems.

Your final Python program

No placeholders