(upbeat music) In this lesson, we're going to start learning graphics inside of the Python environment. The way we're going to do that is we're going to use a module called turtle. Let's open up New File and immediately save it as 001 inside of the Advanced Python directory on our Desktop. Once that's done, we can start programming. So to use turtle, we have to actually import it as a module. And the way we do that is we type import turtle. If you recall from the intermediate class, when we were learning how to import modules, we learned that we could also import them by typing from, followed by the module name, followed by import and then in our case, we would just type an asterisk and that would import everything, very much like the line right above it. We're going to move our method of importing to coincide with the first line of this code. The reason for that is that the second or the from line here is much better suited if we're not going to import the entire thing. So consequently, we have saved ourself even a minuscule amount of time. Once we import that module, we need to create an object and in our case, it's going to be called my_turtle and it's going to equal the module turtle, followed by a dot, followed by Turtle. The difference is it has a capital T. Let's not forget the open and close parentheses. So to back up a second, we've actually created an object called my_turtle and it's an object of type Turtle and with that type Turtle comes nearly an unlimited supply of methods. So what we wanna do and what we wanna accomplish in this lesson is to be able to actually make a graphic. So we're going to say my_turtle is going to move but it's going to move forward. Inside of parentheses, we are going to put a number in pixels. So in this case, let's have our turtle move forward 200 pixels. So with those three lines, we've created an object, we've imported a module and we've applied a method. So let's save this. And run it. And look, we have, well, I guess it's a turtle even though it looks like a triangle or an arrowhead if you will at the end of a line. But it moved from the starting position forward 200 pixels. So the question you probably wanna ask is why is it called turtle if it's actually an arrowhead? When this first came out, it was actually a turtle. So for the sake of posterity, we are going to shape our arrow into a turtle, just by using another method. So my_turtle and then after that, we're going to put the word shape and inside parentheses and quotation marks, we're going to to put the word turtle. We hit File and Save and then run it, and you will notice now that it looks more like a turtle. In our next lesson, we're going to look at some more things we can do with graphics and the turtle. So see ya then.