Skip to content
← Back to Community
Draw a square with python turtle
Profile icon
madmonster

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:
![Screenshot_2019-02-06-21-08-08]
(https://storage.googleapis.com/replit/images/1549487299681_e06a2bbfc98351726ed2b96be690bd97.pn)
After that step, you do these two simple commands:
t.forward(100)
t.left(90)

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)

Voters
Profile icon
AkhilPainuly
Profile icon
IbrahimHashmi
Profile icon
JanPadyna
Profile icon
Jackli21
Profile icon
2C23NG
Profile icon
madmonster