← Innovation PlaygroundMISSION 21 / 100 · Coding Studio

Counting with a for loop

Generate a sequence of repeated steps.

1. Explore the controls

Change the inputs and observe the model's response.

2. Observe the results

Sequence1, 2, 3

How the model works

for i in range(1, n+1): print(i*step)
YOUR MISSION

3. Reach the target

Adjust the controls to obtain the following output. Multiple valid solutions may exist.

Sequence2, 4, 6, 8, 10
Need a hint?

The first value is step; the final value is n × step.

Explore, then check your answer.

Simplified educational model. No real hardware is controlled. Code examples are illustrative and not executed as arbitrary programs.