Now let’s go over some of the functions that a turtle can do.
forward(pixels): Tells the turtle to move forward, where “pixels” is a number representing how far it should go
backward(pixels): Tells the turtle to move backward, where “pixels” is a number representing how far it should go
left(degrees): Tells the turtle to turn left, where “degrees” is a number representing how far it should turn
right(degrees): Tells the turtle to turn right, where “degrees” is a number representing how far it should turn
penup(): Causes the turtle to “lift” the pen, so it can still move, but it won’t draw as it goes
pendown(): Causes the turtle “lower” the pen, allowing it to draw again
Try drawing some something with some of the above functions, on the right is an example of a drawing that uses most of these so you can see them in action.
turtley.forward(50)
turtley.penup()
turtley.backward(100)
turtley.right(90)
turtley.pendown()
turtley.forward(50)