Get the robot to the star — with code!
This is Novin Zehn's coding lab: write a few simple Python-like commands, press Run, and watch the 3D robot do exactly what you said. Solving the levels teaches core programming ideas such as sequencing, loops and debugging.
main.py
Write your code and press Run. Shortcut: Ctrl + Enter
📘 Commands
forward(3)— move 3 tiles forwardback(1)— move 1 tile backturn_left()/turn_right()— turn 90°repeat(4):— repeat the indented lines 4 timeslight("red")— lamp color: red, green, blue, yellow, purplesay("hi")— the robot speaks# ...— comment (not executed)
Real Python runs right here in your browser. The first run takes a few seconds to load. Pick an example or write your own:
python3Ctrl + Enter
Take coding further
This lab is just the beginning. In Novin Zehn's courses, kids and teens learn Python step by step and build and program real robots.