import turtle # Set up the screen screen = turtle.Screen() screen.bgcolor("white") # Create turtle object t = turtle.Turtle() t.speed(0) # Set the fastest drawing speed # Function to draw yellow dot def draw_dot(x, y): t.penup() t.goto(x, y) t.dot(10, "yellow") # Draw yellow dots in all four corners of the screen draw_dot(-300, 200) # Top left corner draw_dot(300, 200) # Top right corner draw_dot(-300, -200) # Bottom left corner draw_dot(300, -200) # Bottom right corner turtle.done()
# Set up the screen
screen = turtle.Screen()
screen.bgcolor("white")
# Create turtle object
t = turtle.Turtle()
t.speed(0) # Set the fastest drawing speed
# Function to draw yellow dot
def draw_dot(x, y):
t.penup()
t.goto(x, y)
t.dot(10, "yellow")
# Draw yellow dots in all four corners of the screen
draw_dot(-300, 200) # Top left corner
draw_dot(300, 200) # Top right corner
draw_dot(-300, -200) # Bottom left corner
draw_dot(300, -200) # Bottom right corner
turtle.done()