import turtle def main(): # Set up the screen screen = turtle.Screen() screen.setup(width=600, height=400) # Create a turtle object pen = turtle.Turtle() pen.width(2) # Set line width pen.penup() # Lift the pen to move without drawing # --- Draw a pentagon in the left half --- pen.goto(-200, 70) # Move to the left side of the screen pen.pendown() # Put the pen down to start drawing pen.color("blue") # A for loop is better here, but we may not yet cover looping. pen.forward(80) # draw the first line of the pentagon pen.right(72) # the exterior angle of a pentagon pen.forward(80) pen.right(72) pen.forward(80) pen.right(72) pen.forward(80) pen.right(72) pen.forward(80) pen.right(72) # --- Draw concentric circles in the right half --- # circle 1 pen.penup() # Put the pen up to not draw pen.goto(150, -100) # Move to the right side of the screen pen.pendown() # Put the pen down to start drawing pen.color("red") pen.begin_fill() pen.circle(100) pen.end_fill() # circle 2 pen.penup() pen.goto(150, -80) pen.pendown() pen.color("yellow") pen.begin_fill() pen.circle(80) pen.end_fill() # circle 3 pen.penup() pen.goto(150, -60) pen.pendown() pen.color("green") pen.begin_fill() pen.circle(60) pen.end_fill() # circle 4 pen.penup() pen.goto(150, -40) pen.pendown() pen.color("blue") pen.begin_fill() pen.circle(40) pen.end_fill() screen.exitonclick() if __name__ == "__main__": main()