145k views
2 votes
Help 6.6 code practice question 1

Help 6.6 code practice question 1-example-1

2 Answers

0 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 Dmitry Ryadnenko
by
4.3k points
2 votes

Answer:

just type whatt you know and use your correct things

Step-by-step explanation:

so like( frame)

User Ttsesm
by
4.3k points