import turtle
screen = turtle.Screen()
t = turtle.Turtle()
t.fillcolor("red")
t.begin_fill()
for _ in range(4):
t.forward(100) #
t.left(90)
t.end_fill()
screen.exitonclick()
To embed this program on your website, copy the following code and paste it into your website's HTML: