188,440 views
12 votes
12 votes
Help 6.6 code practice question 1

Help 6.6 code practice question 1-example-1
User Neeraj Shukla
by
2.4k points

2 Answers

22 votes
22 votes

Answer:import simplegui

width = 800

height = 800

def draw_handler(canvas):

canvas.draw_circle((width/2, height/2), 5, 100, "Black")

canvas.draw_circle((width/2, height/2), 5, 200, "White")

canvas.draw_circle((width/2, height/2), 5, 300, "Blue")

canvas.draw_circle((width/2, height/2), 5, 400, "#Red")

canvas.draw_circle((width/2, height/2), 5, 500, "#Yellow")

frame = simplegui.create_frame("Target",width,height)

frame.set_draw_handler(draw_handler)

frame.set_canvas_background("White")

frame.start()

Explanation: It don't have to be the same as the image given. Just needs to be a target of some sort :)

User Colin Pear
by
2.8k points
10 votes
10 votes

Answer:

just type whatt you know and use your correct things

Step-by-step explanation:

so like( frame)

User Moose
by
2.7k points