Everyone Can Learn Program
中文 Start learning
Course 1 · Zero to coding Free to read

Robot Quest tutorial

Guide Bit the robot with real Python: walk, turn, collect gems and reach the flag.

10 lessonsabout 6 h
Learn it by doing

The interactive course has the same lessons with an editor next to them: run every example, answer the quizzes and solve exercises that are checked the moment you submit. Free to start, no sign-up.

Start the interactive course
1

Step by step

Give commands one after another.
1 First stepsHow do you tell a computer exactly what to do?2 TurningHow do you change direction, and how does a program describe it?3 Collecting gemsHow do you plan a longer program that has more than one goal?
2

Loops

Repeat commands without copying them.
4 Repeat with forHow do you repeat a command without writing it again and again?5 Patterns in a loopHow do you find the part of a task that repeats?6 Loops inside loopsWhat if the repeating part itself contains a repeat?
3

Decisions and functions

Write one program that works on many maps.
7 Look first: ifHow can one program handle different situations?8 Keep going: whileHow do you repeat something when you don't know how many times?9 New commands: defHow do you teach the computer a new command?10 Final: any mazeCan you write one program that solves mazes it has never seen?