1. Drawing with a turtle
Try firstA turtle runs forward(100), right(90), forward(50). How many lines does it draw, and which is longer, the first or the second?
Check your answer
Two lines (the turn does not draw). The first is longer: 100 steps against 50.
A program is a list of commands the computer follows in order, from the top down. forward(100) moves the turtle 100 steps and draws a line. right(90) turns it on the spot, a quarter of a full turn clockwise; it does not move or draw. left(90) turns the other way.
Because each turn changes the way the turtle faces, the order of the commands is the picture. Swapping two lines gives a different drawing.
The first line, from turtle import *, gives a program the turtle commands. Students copy it for now; Functions and Modules explain how it works.