> For the complete documentation index, see [llms.txt](https://computational-thinking-in-room11.gitbook.io/room112-textbasedprogrammimg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://computational-thinking-in-room11.gitbook.io/room112-textbasedprogrammimg/unit-2/writing-algorithims/a-drawing-turtle.md).

# Meet a drawing turtle

The turtle robot, a simple robot controlled from the user's workstation that is designed to carry out the drawing functions assigned to it using a small retractable pen set into or attached to the robot's body

![](/files/-MRkkm6RgAJRpb9NXvMS)

**A drawing turtle** is going to have three attributes a location, an orientation (or direction), and a pen. The pen will have its own attributes: color, width, and on/off state.

When we program with a turtle, we are using **body syntonic** reasoning - in other words - we can predict and reason about the turtles movements by imagining what we would do if we were the turtle.

```
#creating a new drawing turtle named mock
mock = turtle.Turtle()
#moving mock forward 100 steps
mock.forward(100)
#mock is making a left hand turn at 60 degrees
mock.left(60)
```

![This is my real code and the console output](/files/-MRkmUkcpUNQ5YKxxUcz)

This is sequential code! One line executes AFTER the one before it has finished.&#x20;

The # are programmer comments that clarify the action

### mock.forward()&#x20;

Mock is the name of the object we created (mock is an instance of the turtle) and we are calling the method/function/procedure of forward. These methods already exist in the Python library.&#x20;

### mock.forward(100)&#x20;

The 100 is the value passed into the method as an argument. - allowing us to use this method for any number of steps we want the turtle to take.
