VariablesReward: +100 XP
The First Step
Set the variable steps to 3 to walk the hero forward to the treasure chest.
Instructions:
- •A variable stores a value that your program can use.
- •Assign the integer 3 to the variable steps.
- •Run your code to watch the hero march across the path to open the chest!
Available Actions / Commands:
step()— Moves hero forward 1 tile (auto-triggered by steps variable)Run code: ⌘↵
x:0
x:1
x:2
x:3
y:0
Hero: (0, 0)Goal: (3, 0)
Facing: east
0-Indexed Array Memory
Live TelemetryInteractive In-Browser Runner
Language: Python
Click "▶ Run Code" (or press ⌘↵) to execute your code and run assertions.