Jason R Briggs

Python for Kids

Puzzle Number 1

Posted, 10 Nov 2012

Difficulty: easy - medium

Download this file (puzzle1.py) to your computer, and then start up IDLE. Open the file, by clicking on the File menu, clicking Open and choosing the location you saved the file. When you run the code (click on the Run menu, and choose Run Module), the turtle will draw a simple maze:


Can you write a program to help the turtle navigate its way through the maze? Your code should be no more than 34 or 35 lines in length.

If you need help, reading chapters 4, 6 and 11, in Python for Kids, would be a good place to start.

Update: The full solution can be found here.