← Innovation PlaygroundMISSION 24 / 100 · Coding Studio

Arrays and indexing

Retrieve an item from a fixed zero-indexed array: [LED, Sensor, Motor, Switch].

1. Explore the controls

Change the inputs and observe the model's response.

2. Observe the results

Selected itemLED

How the model works

parts = ["LED", "Sensor", "Motor", "Switch"]
print(parts[index])
YOUR MISSION

3. Reach the target

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

Selected itemMotor
Need a hint?

Index 0 selects the first item.

Explore, then check your answer.

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