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, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
Aresearcher wants to do a web-based survey of college students to collect information about their sexual behavior and drug use. direct identifiers will not be collected; however, ip addresses may be present in the data set. risk of harm should be evaluated by: solely by the magnitude or severity of expected harm. both the magnitude (or severity) and the probability (or likelihood) of harm. solely by the probability of expected harm. neither the magnitude or probability of harm.
Answers: 3
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
Social Studies, 05.05.2020 06:59
question
Mathematics, 05.05.2020 06:59
Questions on the website: 13722360