import turtle
# Set the size of the field
field_size = 500
# Create a new turtle screen
screen = turtle.Screen()
screen.setup(field_size, field_size)
# Create a new turtle
turtle = turtle.Turtle()
# Define the size of the squares
square_size = 50
# Define the coordinates of the top left corner of each square
top_left_coordinates = [(0, 0), (0, field_size - square_size),
(field_size - square_size, 0),
(field_size - square_size, field_size - square_size)]
# Iterate through the top left coordinates and draw squares
for coordinate in top_left_coordinates:
turtle.penup()
turtle.goto(coordinate)
turtle.pendown()
for _ in range(4):
turtle.forward(square_size)
turtle.right(90)
# Hide the turtle and close the turtle graphics window
turtle.hideturtle()
turtle.done()