# Inspired by our cat Pietje

from turtle import *
from random import *

# Set up the turtle
speed(1)  # Set the speed of the turtle
penup()   # Lift the pen to move without drawing
goto(-100, 50)  # Move the turtle to a starting position
pendown()  # Put the pen down to start drawing

# Function to draw a rectangle
def draw_rectangle(width, height):
    for _ in range(2):
        forward(width)  # Move forward by the width
        right(90)       # Turn right by 90 degrees
        forward(height) # Move forward by the height
        right(90)       # Turn right by 90 degrees

# Draw a rectangle with random colors
pencolor(choice(['red', 'blue', 'green', 'yellow', 'purple']))  # Set random pen color
fillcolor(choice(['red', 'blue', 'green', 'yellow', 'purple']))  # Set random fill color
begin_fill()
draw_rectangle(200, 100)  # Draw a rectangle of width 200 and height 100
end_fill()