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

Crystal Factory

Bolt has reached an automated crystal factory. Four batches are waiting to be processed, and each batch contains two crystals. Use a loop to automate the work and keep a running total.

Factory Control

Your loop will process each batch automatically.

Crystals processed
0 / 8
Batch 1
💎 💎
Batch 2
💎 💎
Batch 3
💎 💎
Batch 4
💎 💎
Factory waiting for instructions.
Mission objective

Automate repeated work

There are four batches. Each batch adds 2 crystals to the running total.

Use a for loop to process all four batches instead of repeating the same instructions manually.

Repeat the loop exactly four times
Update total by 2 each time
Process all 8 crystals

Check your understanding

If the loop used range(3) and each batch added 2 crystals, what would the final total be?

Mission complete!

You combined a loop with a running variable to automate the factory and process all eight crystals.

Your Python code

Complete the loop count