subject

Whenever i try to plug in my code it will not work. i also need to add 4 more polygons and i don't know where.

import simplegui
import random
x = 500
y = 100

def draw_handler(canvas):
global x
global y
color = "rgb(100, 200, 55)"
x = x + 30
if (x > = 1000):
x = 50
canvas. draw_circle((x, y), 50, 1, color, color)

canvas. draw_circle((x, y), 50, 50, "lime")
canvas. draw_circle((x, y), 90, 60, "blue")
canvas. draw_line((x, , 45), 10, "red")
canvas. draw_line((x, , 801), 10, "orange")
canvas. draw_line((x, , 80), 10, "green")
canvas. draw_line((x, , 2), 21, "dark red")
canvas. draw_line((x, , 800), 100, "orange")
canvas. draw_line((x, , 800), 10, "red")
canvas. draw_line((x, , 600), 100, "orange")
canvas. draw_line((x, , 607), 100, "orange")
canvas. draw_line((x, , 609), 100, "orange")
canvas. draw_line((x, , -607), 50, "green")
x = 0
y = 0
def draw_handler(canvas):
global x, y
x = random. randint(0,600)
y = random. randint(0,600)
e = random. randint(0,600)
canvas. draw_circle((x, y/2), 20, 1,"black", "black")
canvas. draw_circle((x/2,y), 20, 1,"black", "black")
canvas. draw_circle((x, y+30), 20, 1,"black", "black")
canvas. draw_circle((x+70,y), 20, 1,"black", "black")
canvas. draw_circle((x, y), 20, 1,"black", "black")
for z in(50, 80, 110, 140, 170):
canvas., "black")
for w in(50,30,70,40):
canvas. draw_line((x,,e),5,"black")

frame = simplegui. create_frame("biggie cheese", 1000, 600)
frame. set_canvas_background("black")
frame. set_draw_handler(draw_handler)
frame. start()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
You know the right answer?
Whenever i try to plug in my code it will not work. i also need to add 4 more polygons and i don't k...
Questions
question
Mathematics, 05.12.2019 11:31
question
Chemistry, 05.12.2019 11:31
question
History, 05.12.2019 11:31