48.7k views
6 votes
Edhesive 6.6 Code Practice: Question 2
I have attached a picture below!

Thanks!

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

1 Answer

7 votes

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()

Step-by-step explanation:

User Jsiirola
by
5.9k points