def drawFlagOfTheEU(canvas, x0, y0, x1, y1): canvas.create_rectangle(x0, y0, x1, y1, fill='white', ) size = (x1 - x0) // 12 #canvas.create_text((x0 + x1)/2, (y0 + y1)/2, # text='Draw the EU flag here!', font=f'Arial {size} bold') # Your code goes here! # find relevant values for positioning clock width = (x1 - x0) height = (y1 - y0) r = min(width, height)/2 cx = (x0 + x1)/2 cy = (y0 + y1)/2 # draw the clock face canvas.create_oval(cx-r, cy-r, cx+r, cy+r, outline="black", width=2) canvas.create_oval(cx-r, cy-r, cx+r, cy+r, outline="black", width=2) canvas.create_rectangle(cx-r, cy-r, cx+r, cy+r, outline="black", width=2) # find the hourAngle and draw the hour hand # but we must adjust because 0 is vertical and # it proceeds clockwise, not counter-clockwise! hourRadius = r*1/2 #canvas.create_line(cx, cy, hourX, hourY, fill="black", width=1) # repeat with the minuteAngle for the minuteHand minuteRadius = r*9/10 #canvas.create_line(cx, cy, minuteX, minuteY, fill="black", width=1)