learning-picostack

Logo and turtle graphics

What it is

Logo is a programming language. You can use it to write programs that direct the motions of a turtle.

Screenshot 2026-08-22 at 09 52 18

What to do

Visit the Logo Interpreter website.

First program

This is the program, written in English for you to follow:

Type in “forward 100 right 90” (without typing the quotation marks) and press the Enter key.

Screenshot 2026-08-22 at 09 53 00

Use abbreviations: type in “fd 100 rt 90” and press the Enter key.

Screenshot 2026-08-22 at 09 53 47

Do it again (for the third time).

Screenshot 2026-08-22 at 09 54 36

And again (four times in all).

Screenshot 2026-08-22 at 09 55 23

When you have finished looking at the turtle and what it has done, type in “cs” (short for “clearscreen”) and press the Enter key.

Second program

Now, you be the programmer and the turtle will follow your instruction.

Type “repeat 4 [ fd 100 rt 90 ]” and press the Enter key.

Screenshot 2026-08-22 at 09 55 23

When you have finished looking at the turtle and what it has done, type in “cs” (short for “clearscreen”) and press the Enter key.

Third program

Teach the turtle how to draw a square.

Type “to square repeat 4 [ fd 100 rt 90 ] end” and press the Enter key.

You will see nothing happen on the screen. The turtle is just taking this in.

You can see what it knows how to do by clicking on the “Library” link.

There you will see your program, named “square”.

Now the turtle knows how to draw a square.

Fourth program

Instruct the turtle to draw a square.

Type “square” and press the Enter key.

Screenshot 2026-08-22 at 09 55 23

When you have finished looking at the turtle and what it has done, type in “cs” (short for “clearscreen”) and press the Enter key.

Some fun

Type “repeat 5 [ square rt 72 ]” and press the Enter key.

Screenshot 2026-08-22 at 10 25 25

Exercises

  1. In program one, were you operating the turtle or programming it?
  2. What about in program three?
  3. And in program four?
  4. Play. If you get stuck, ask someone for help.