Turtle exercise

Flag of the United Kingdom

Sign in to hand in your solution and get feedback.

import turtle as otto def draw_polygon(points, color): otto.penup() otto.goto(points[0]) otto.pendown() otto.color(color) otto.begin_fill() for point in points[1:]: otto.goto(point) otto.end_fill() # Example: a dark blue rectangle for the background of the flag. draw_polygon([(-150, 75), (150, 75), (150, -75), (-150, -75)], "#012169") # Draw the white stripes, the red strips and the two crosses with draw_polygon. # Add a thin black outline around the flag's outer edge.