Skip to content
← Back to Community
How to draw a square
Profile icon
lakshmilakshmi

The code for drawing a square in Repl.it

import turtle
squ=turtle.Turtle()
squ.forward(100)
squ.right(90)
squ.forward(100)
squ.right(90)
squ.forward(100)
squ.right(90)
squ.forward(100)

Voters
Profile icon
21PethoM
Profile icon
AlexanderWierzb
Profile icon
lakshmilakshmi