DEMO Level 5 · The Traffic Light
Loading the editor…
🐍 Python 3 · MindBlock
⨯ 0 ⚠ 0
Ln 1, Col 1
Spaces: 4
UTF-8
Goal
Read the traffic light with the color sensor: if it’s green, go on to the FINISH; if it’s red, turn and wait at the STOP. It changes every round!
Hint: Move forward 50 cm to the card. “If the floor color is green”: move forward 90. “If the floor color is red”: turn left and move forward 40.
Score 0 goal 50
⏱ 0:00 / 2:00
Level complete!
Great coding!
You finished all 5 demo levels! In live classes, your child builds their own robot and solves new challenges every week with a teacher.
Enroll my child