 High again in this lesson we're going to talk about that how to draw a square with turtle graphics in Python programming language To do that first, let's make new file and Let's import Turtle module turtle module provide us graphics primitives So let's import that module. Let's say from turtle import everything Now let's make our Default window default Turtles window with command setup. We don't want to give as arguments to set up a values of width and height of our windows, let's make it to to be default windows now we want to Get some title for example, let's Make a title for our windows how to draw a Square Okay Now we want to draw a square We know that our square has four sides and we want to have Every side of our square for example 200 pixels Square has four sides and every side needs to have for example 200 pixels We will use function forward with that function will create one line of 200 pixels wide, let's run it to first, let's save it Turtle square for example dot pi Let's run it and as you can see our program draw The line let's back to the our program now. We want to draw four lines but in every drawing for example, if we try to draw another line and run our module as you can see our Those two lines will be drawn together We want to rotate After drawing our first line. We want to make rotation by 90 degrees clockwise to use rotation for We will use function right and provide as an argument our angle so we want to provide value of 90 degrees angles and if we run our module you will see that after drawing first line our Drawing will be rotated and in the next drawing our line will be Drawed in 90 degrees clockwise similarly We could do the rest of our drawings now after drawing of second side we want again to Rotate our direction for 19 degrees and again Make a new line and Now we have three sides of our square and we can get four One by doing the same exact code And now we will get our square completely drawn drawn, but the problem is that This code is too repetitive in a lot of lines We use the same kind of code in Python programming language. For example, we could use some iteration we could use for loop Let's make our for loop for example for I in range for Because we have four times the same amount of our code almost four times and We can do that by Putting our code in just one iteration This code will do exact same thing. It will draw our Square Okay, I don't think so that it Was good Let me try again No Okay, so we do exact the same thing And that's all for this lesson in this lesson. We've learned how to draw a square with the turtle Graphics in Python. Thanks for watching. Happy coding