subject

Copy and paste the following code into the programming environment below and work through the exercises.
import simplegui
import random
frameWidth - 500
def draw_handler(canvas):
for i in range (1, 3000):
r = random. randint(0,255)
9 - random. randint(0,255)
b - random. randint(0,255)
randRGB Color - "RGBC" + str(n) + "," + str(9) + "," + str(b) + ")"
x = random. randint(2, frameWidth)
y = random. randint(2, frameWidth)
canvas, draw_point((x, y), randRGBColor)
frame - simplegui. create_frame('Howdy - I love this program', frameWidth, frameWidth)
backg - "RGB(" + str(255) + "," + str(255) + "," + str(255) + ")"
frame. set_canvas_background(backg) + do it once instead of thousands upon thousands of time
5
frame. set_draw_handler(drow_handler)
frame. Start

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
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, 24.06.2019 11:00
Which of the statements below describe the guidelines for the use of text in presentation programs? a. do not use numbered lists. b. fonts should be appropriate for your audience. c. limit the number of fonts you use to three or four. d. only use bulleted lists for sales promotions. e. select font sizes that are appropriate for your delivery method. f. use font colors that work well with your background. select all that apply
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
You know the right answer?
Copy and paste the following code into the programming environment below and work through the exerc...
Questions
question
Mathematics, 17.12.2019 06:31