Lesson 17 of 51 · Basic Shapes
Square
The simplest shape: four equal sides, four 90° angles.
Python
from turtle import *
bgcolor("black")
color("cyan")
pensize(4)
speed(0)
for i in range(4):
forward(150)
right(90)
done()Output

1
Drawing a Square
Repeat "forward + right(90)" four times.
2
Using a Loop
Use for i in range(4): to repeat the code instead of writing it 4 times.