Lesson 18 of 51 · Basic Shapes
Rectangle
A rectangle has two pairs of equal sides.
Python
from turtle import *
bgcolor("black")
color("hotpink")
pensize(4)
for i in range(2):
forward(200)
right(90)
forward(100)
right(90)
done()Output

1
The Pattern
Draw length → turn 90° → draw width → turn 90°. Repeat twice.