Students meet the turtle, read a program that draws a digital 2, learn that the order of commands is the picture, and draw a 4 themselves.
Load these into Waypoints Prepare: choose Load URL and paste the copied address, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.
Meet the commands 8 min · Predict and Run 8 min · Put the lines in order 7 min · Make 12 min
Draw the 4 yourself. It takes two minutes, and you will see why the last turn is right(180).
On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.
Let students defend both sides. The robot did exactly what the program said, so the mistake is in the program. Return to this after the ordering task: did anyone's first order give a surprising picture?
Here is a digital 2 made from five lines of commands. By the end of the lesson you will write commands that draw a 4.
Show the finished 2 on the projector before anything else.
One volunteer is the turtle, standing in the middle facing the window. The class reads the commands aloud, one at a time. The turtle obeys: 3 steps for each forward, a quarter turn for right(90) or left(90).
Papert designed the turtle so learners could play it. Walking the commands makes it concrete that a turn changes which way forward goes.
Remembering that right and left turn without drawing. Ask what the turtle did on that line, instead of telling them.
| What you will see | A question to ask | The fix |
|---|---|---|
| The turtle draws a line where the student expected a turn. | Does right(90) move the turtle, or only turn it? | right and left turn the turtle on the spot. Only forward draws. |
| The 4 comes out back to front, or the strokes point the wrong way. | Read the lines aloud in order, as if you were the turtle. Where does it face after each turn? | Each line happens after the one above it, and each turn changes which way forward goes. Swap a left for a right, or the other way, and see. |
| A NameError or "forward is not defined". | What is the first line of your program? | Every program starts with from turtle import *. Copy it to the top. |
forward(60)
left(90)
forward(40)
right(90)
forward(60)
One possible solution for each task. Other correct programs are fine.
from turtle import *
right(90)
forward(50)
left(90)
forward(50)
left(90)
forward(50)
right(180)
forward(100)
Stretch: Draw a second digit beside the first, such as an 8 or a 7. Where does the turtle have to start?
Support: Give the first stroke and the first turn, and ask the student to add the rest.
A turtle runs forward(100), right(90), forward(50). How many lines does it draw, and which is longer, the first or the second?
Two lines (the turn does not draw). The first is longer: 100 steps against 50.
Next lesson: the same commands again and again. A square is eight lines written out, and a loop makes it three.