Share your repls and programming experiences

← Back to all posts
Draw a square with python turtle
madmonster (33)

First, you import turtle and do t = turtle.turtle()
Then you do FOR loop repeating 4 times.(0,4 or 1,5) If you don't know how to make loops, here is how it should look like:
After that step, you do these two simple commands:

Note that the 100 in t.forward is unnecessary as you can change it from as tiny as 10 to as huge as 1000.(longer than the turtle window)