Edhesive 6.6 Code Practice: Question 2
I have attached a picture below!
Thanks!

Answer:
import simplegui
width = 800
height = 800
def draw_handler(canvas):
canvas.draw_circle((width/2, height/2), 5, 100, "Green")
canvas.draw_circle((width/2, height/2), 5, 200, "Green")
canvas.draw_circle((width/2, height/2), 5, 300, "Green")
canvas.draw_circle((width/2, height/2), 5, 400, "#Green")
canvas.draw_circle((width/2, height/2), 5, 500, "#Green")
frame = simplegui.create_frame("Circles",width,height)
frame.set_draw_handler(draw_handler)
frame.set_canvas_background("White")
frame.start()
Explanation: