Skip to main content

Sample programs

Teacher guide

Sample programs

Teacher modeOne page per moduleBoth tracks
👩‍🏫

Teacher mode is on: the sample programs in this section are yours only. Flip the switch (bottom-right) to preview what students see.

This section holds complete, working programs for every module, for checking student work and for getting a robot running when you need one in a hurry. The programs are shown only in teacher mode. Students: the robot.py templates are the files for you.

ModuleWhat's on its page
Module 1 · Learning to DriveOne short program per Python lesson (1-8 to 1-11), and two sample final projects
Module 2 · Line Trackingrobot.py at the end of the module, both tracks
Module 3 · Grid Drivingrobot.py at the end of the module, both tracks
Module 4 · Manhattan Navigationrobot.py at the end of the module, both tracks
Module 5 · Pathfinding Around Obstaclesrobot.py at the end of the module, both tracks, and the Lesson 5-2 demonstration
Module 6 · Dijkstra's Algorithm (optional)robot.py at the end of the module, both tracks