import turtle

window = turtle.Screen()

square = turtle.Turtle()

square.begin_fill()

square.pencolor("blue")
square.pensize(1)
square.shape("turtle")
square.fillcolor("red")

#drawing

square.forward(100)
square.right(90)
square.forward(100)
square.right(90)
square.forward(100)
square.right(90)
square.forward(100)