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

Crystal Trail

Help Bolt collect all five energy crystals. Use a Python for loop so Bolt repeats the same instructions five times.

Crystal Trail

Run your Python code and watch Bolt respond.

Crystals: 0 / 5
Mission objective

Use repetition

Instead of writing robot.move() and robot.collect() five separate times, use one loop to repeat both instructions.

Use a Python for loop
Move Bolt exactly five times
Collect all five crystals

Check your understanding

What would happen if range(5) were changed to range(3)?

Mission complete!

You used a Python for loop to repeat instructions and help Bolt collect all five crystals.

Your Python code

Complete the missing value