6.3 Code Practice

You should see the following code in your programming environment:

import simplegui

def draw_handler(canvas):
# your code goes here

frame = simplegui.create_frame('Testing', 600, 600)
frame.set_canvas_background("Black")
frame.set_draw_handler(draw_handler)
frame.start()


Use the code above to write a program that, when run, draws 1000 points at random locations on a frame as it runs. For an added challenge, have the 1000 points be in different, random colors.

Answers

Answer 1

Answer:

Use the canvas code to draw 1000 points but then for the location import the random module and use random.randrange() for it

Explanation:

The drawing object will be used for drawing

The random class is used for the random numbers

I hope it helps


Related Questions

Why would a user want to resend a message? Check all that apply.
O to include new recipients
D to include a forgotten attachment
D to force recipients to read the message immediately
D to respond to a request from a recipient who accidentally deleted it
O to include missing information
O to require recipients to respond to a read receipt

Answers

Answer:

A

B

D

E

Explanation:

O to include new recipients

D to include a forgotten attachment

D to respond to a request from a recipient who accidentally deleted it

O to include missing information

Answer:

He's right its A, B, D and E

Explanation:

7.2.6: First Character CodeHS

"Write a function called first_character that takes a string as a parameter and returns the first character.

Then, write another function called all_but_first_character that takes a string as a parameter and returns everything but the first character.

Test each of your functions on the string "hello" and print the results. Your output should be:"

Answers

def first_character(txt):

   return txt[0]

def all_but_first_character(txt):

   return txt[1::]

print(first_character("hello"))

print(all_but_first_character("hello"))

I wrote my code in python 3.8. I hope this helps.

Following are the Program to the given question:

Program Explanation:

Defining a two-method "first_character and all_but_first_character" that takes a string variable "t" into the parameter.In the first method, it returns the first character of the string.In the second method, it returns the string value except for the first character.At the last, we call both the methods.

Program:

def first_character(t):#defining a method first_character that takes a string variable in parameter

  return t[0]#using return keyword that return first character of string

def all_but_first_character(t):#defining a method all_but_first_character that takes a string variable in parameter

  return t[1::]#using return keyword that return string except first character

print(first_character("hello"))#calling method

print(all_but_first_character("hello"))#calling method

Output:

Please find the attached file.

Learn more:

brainly.com/question/19168392

JAVA
Write a method that takes a parameter for the number of a month and prints the month's name. You may assume that the actual parameter value
passed to the method is always between 1 and 12 inclusive.
This method must be called monthName() and it must have an integer parameter.
Calling monthName(8) should print August to the screen.
You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method
before checking your code for a score

Answers

public class MyClass {

   public static String monthName(int num){

       String arr[] = {"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

       return arr[num-1];

   }

   public static void main(String args[]) {

     System.out.println(monthName(8));

   }

}

I hope this helps.

Methods are blocks of named statements that can be called from other place in the program

The method in java, where comments are used to explain each line is as follows:

//This defines the method

public static void monthName(int month){

//This initializes the array of months

String months[] = {"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

//This prints the month name

System.out.print(months[month-1]);     }

Read more about similar programs at:

https://brainly.com/question/22589115

Hey guys, I am new here but I keep getting questions that are too hard for me and I already set my grade level, what else can I do

Answers

Answer:

I don't know, Brainly says im an expert but i dont think so

*need answer in the next 1 or 2 days*

Unscramble the terms and then put the numbered letters into the right order.

The words all have to do with digital footprint sorta, the only one I did was settings. It’s really late but I appreciate anyone willing to help.

1. REENSTSCOH

2. PISLYNSIEIBROT

3. MICPAT

4. INTIYTED

5. LIFSEE

6. LARTI

7. TINUARTPEO



Answers

Answer:

1. SCREENSHOT

2. RESPONSIBILITY

3. IMPACT

4. IDENTITY

5. SELFIE

6. TRIAL or TRAIL

7. REPUTATION

Explanation:

I think the secret word is FOOTPRINT

A career in culinary arts can best be described as working in the __________ industry.
A.
food
B.
clothing
C.
computer
D.
entertainment

Answers

Answer:

A-Food

Explanation:

The answer would be A:Food

what is the main function of processing unit​

Answers

Answer:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

Explanation:

Answer:

CPU

Explanation:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

why CANON G1010 is the best choices than epson L3110 3in 1 Printer​

Answers

Answer:

I would say go with the canon as I have a better history with it than Epson

Explanation:

they both look similar and have similar features

Which amendment applies to the following scenario? “Brian attended church with his two daughters and wife on Sunday." A First B Second C Fourth

Answers

Answer: First Amendment

Explanation:

The First Amendment gives individuals the freedom of speech and the right to proactive any religion that they want. It also allows the people have a peaceful protest.

The swcud amendment gives people the right to keep arms. The Fourth hinders individuals from being searched without a warrant.

Therefore, the answer is First Amendment.

Why is it a good idea not to change the subject line when replying to a message?
O so that the reply is sent to the original sender
O so that the reply does not bounce back as undeliverable
O so that the reply matches with the sender's original message
O so that the reply does not inadvertently include unintended recipients

Answers

Answer:

C. so that the reply matches with the sender's original message.

Explanation:

The Sender Message Channel Receiver (SMCR) model of communication was developed and created by David Berlo in 1960. SCMR was developed from the Shannon-Weaver model of communication of 1949.

The SCMR model of communication comprises of four (4) main components and these are;

1. Sender (S): this is typically the source of information (message) or the originator of a message that is being sent to a receiver. Thus, they are simply the producer of a message.

2. Channel (C): this is the medium used by the sender for the dissemination or transmission of the message to the recipient. For example, telephone, television, radio, newspapers, billboards etc.

3. Message (M): this is the information or data that is being sent to a recipient by a sender. It could be in the form of a video, audio, text message etc.

4. Receiver (R): this is typically the destination of information (message) or the recipient of a message that is being sent from a sender. Thus, the receiver is any individual who is able to read, hear or see and process the message being sent or communicated in the communication process.  

Basically, the communication channel used in SCMR must connect the sender with the desired recipients.

Hence, it is a good idea not to change the subject line when replying to a message, so that the reply matches with the sender's original message.

Answer:

Explanation:

Its C not B

6. At age 17, what was Minhaj's definition of the American Dream?

Answers

“To me being American means having the opportunity to reach for our goals. It’s accepting where we come from while embracing our dreams and where we’re headed. It’s what makes America great.”

In one sentence, how would you sum up the internet?

Answers

Answer:

an informational system

Explanation:

A source to get information from.

To finish the work safety and early, what OHSP should be done?

Answers

Answer: Always power off and unplug the computer before working on it.

Explanation:

In computer science how can you define "copyright, designs and patents act 1988"?​

Answers

Answer:

:)

Explanation:

Copyright Designs and Patents Act

The Copyright Designs and Patents Act (1988) gives creators of digital media the rights to control how their work is used and distributed. ...

Anything which you design or code is automatically copyrighted and may not be copied without your permission, as the digital creator.

More than a ______ raw materials are required to create a matchstick.

Answers

Answer:

Chemical

Explanation:

Answer:

chemical

Explanation:

Danny wants to create a web page for her friends dog walking service. Which coding language should she use

Answers

Answer:

html js css

Explanation:

who is big brain me or you

Answers

Question:

Who is big brain me or you?

Answer:

I think is you because your the best I can be with you and I hope it helps

#CARRYONLEARNING #STUDYWELL

In Python, the first character in a string has an index position of one.

A: True

B: False

Answers

False.

In python all strings start with an index of zero and end with an index of len(string)-1. This means that a 5 letter long word will start at 0 and end at 4.

what are the peripherals of a computer ​

Answers

Answer:

A computer peripheral is any external device that provides input and output for the computer.

An IP subnetting design effort is under way at a company. So far, the senior engineer has decided to use Class B network 172.23.0.0. The design calls for 100 subnets, with the largest subnet needing 500 hosts. Management requires that the design accommodate 50 percent growth in the number of subnets and the size of the largest subnet. The requirements also state that a single mask must be used throughout the Class B network. How many masks meet the requirements

Answers

Answer:

The answer is "0".

Explanation:

The mask should describe sufficient subnet bits for build 150 subnet masks with 50% development. The Mask thus needs a minimum of 8 subnet bits (7 subnet bits supply 27, or 128, subnets, and 8 subnet bits supply 28, or 256, subnets). Similarly, such a need to grow by 50% of its size of the main subnet needs, that host part to amount to 750 hosts/subnet. There's not enough 9 host bits (29 - 2 = 510), yet 10 network bits have 1022 host(s)/subnet (210 – 2 = 1022). This same maximum mask project requires to be 34 bits, (at least) in the form of 16 network bits, because of the Class B network, but there are only 32 bits, therefore no single mask meets its requirements.

Jenae helps maintain her school web site and needs to create a web site poll for students. Which tool will she use?

JavaScript
HTML
CSS
Text editor

Answers

Answer:

text editor is not right, it is web browser

Explanation:

if she needed to view her website, she just needs to view it on her web browser.

Answer: HTML

Explanation:

The average value in a data set is referred to as the mode, mean or median

Answers

Answer:

Mean

Explanation:

Answer:

the mean

Explanation:

median is the middle and mode is most frequent

What would be the greatest tool for emphasis? (video class)
A. Dutch angle
B. Medium Full Shot/Cowboy
C. Extreme Close Up/Insert shot
D. Medium shot

Answers

B! I'm sorry if I get this wrong :(

Lesson 3: Wrapping Up Unit 6
3-D Computer Modeling A Unit 6: Visual Elements

does anyone know pls help

Answers

Answer:

A visual representation of colors arranged according to their hues, or the chromatic relation they share

Explanation:

Answer:

I don't understand what you mean sorry :(

Explanation:

PLS HELP ;CC
The "Rule of Thirds" is compositional technique that was incorporated into photography from __________ .

a
early photographers who were first painters

b
early camera makers who found it was easy to explain to amateur photographers

c
early photo printers who used it and later it became a common rule

d
early SMPTE standards

Answers

Answer:

a

early photographers who were first painters

Explanation:

The Rule of Thirds is a compositional technique which states that image painting, photograph, graphic design should be divided into nine equally proportioned boxes by creating a grid with two vertical and two horizontal lines. The rule of third helps in making the picture more attractive and balanced

The rule of thirds was first used in landscape paintings by painters as early as 1797.

Irene wants to connect her smartphone wirelessly to her laptop in order to transfer images. Which two technologies could she reasonably employ to connect these devices?

Wi-Fi
infrared
satellite
mobile network
Bluetooth

Answers

Answer:

The correct answers are

Wifi

Bluetooth

Explanation:

I got it right on the Edmentum test.

Irene wants to connect her smartphone wirelessly to her laptop in order to transfer images two technologies could she reasonably employ to connect these devices are Wi-Fi and Bluetooth.

What is the wireless network?

As an example, it's far usually hired in headsets for cell phones, allowing hands-unfastened cell smartphone use. Wi-Fi, on the alternative hand, lets in gadgets hook up to the Internet. Bluetooth limits the range of gadgets that can join at someone's time, while Wi-Fi is open to greater gadgets and greater users.

Wi-Fi is possibly the largest and maximum tricky example, as are different Bluetooth receivers and gadgets, that can intrude on one another. The backside line is this: WiFi is the wi-fi community you operate to your house, however it is able to be made out of any form of network connection.

Read more about the mobile network:

https://brainly.com/question/917245

#SPJ2

Which statement best describes what a project manager controls

Answers

Project controls are processes for gathering and analyzing project data to keep costs and schedules on track. The functions of project controls include initiating, planning, monitoring and controlling, communicating, and closing out project costs and schedule.

The delegation of responsibilities in a project is a project manager controls. Hence, option D is correct.

What is delegation of responsibilities?

Transferring accountability for particular tasks from one person to another is referred to as delegation. From a managerial standpoint, delegation happens when a manager gives their staff members particular tasks to do.

The manager can distribute authority, but responsibility and accountability cannot, according to the idea of absolute responsibility. Both the tasks that the manager has delegated to his subordinates and the actions of his subordinates fall under his purview of accountability to his own superior.

Effective delegation helps you and your team become better leaders and professionals, frees up time, gets you ready to manage bigger teams, and motivates team members to work harder. A crucial managerial skill to develop throughout your career is delegation.

Thus, option D is correct.

For more information about delegation of responsibilities, click here:

https://brainly.com/question/14875204

#SPJ5

The options were missing-

the overall choice of which work becomes a project

the overall deadline when a project is due

the overall resources allocated for a project

the delegation of responsibilities in a project

Tonya wants to group some messages in his inbox. What are some of the ways that she can do this? Check all that apply. assign messages a color-coded category. Create a rule to move messages to a new folder. Create a new folder, select/ highlight messages, right-click, and choose Move to folder. Highlight messages, right-click, and choose Group Messages.

Answers

Answer: Create a new folder, select/highlight messages, right-click, and choose group messages.

Explanation: answer above!

Tonya wants to group some messages in his inbox. Some ways that she can do this are:

Assign messages to a color-coded category. Create a rule to move messages to a new folder.To create a new folder, select/highlight messages, right-click, and choose group messages.

What is organizing massages?

A list of folders can be found in the left-side menu of Messages. Click the New Folder button under My Folders. A new window with the title "Create New Folder" will open. In the text box, type the name you want for the new folder.

Touch Conversation categories > Add category, then tap Done to create a category. To view the newly added tab or label, return to the app's home screen. Tap Conversation categories to rename a category. Rename can be selected in the bottom men after selecting the desired category.

Therefore, the correct options are A, B, and C.

To learn more about organizing massages, refer to the link:

https://brainly.com/question/28212253

#SPJ2

what purpose would the auto fill feature be most helpful for?

Answers

Answer:

Completing the items in a series

Explanation:

Auto fill is a function found in software and applications that allows you to input a range of numbers or characters in a specific range and finish the entry you began typing with the program.

AutoFill effectively helps you to build tablets more efficiently, allowing you to fill cells with a set of data quickly, It allows you to create whole columns or rows of data that are centered on other cells' values. Autofill is used in all the rows to fill out a specific feature.

What is the answer I will give brainliest

Answers

The answer is 24kQr3
Other Questions
The parabola in the figure below has an equation of the form y = ax^2 + bx - 4. Find the equation of the parabola Analyze the diagram and use your knowledge of history to answer the following questionU. S. Exports to Europe 1912-1917(in millions $)20001600Which of the following would be best explained by the information above? A. The U.S. would not feel that France needed much in the way of economic support during WWI.B.The amount of economic activity done in Europe would cause the U.S. to continue it's isolationist policyC. The amount of economic activity done with France and Britain would make it necessary for the U.S. to join the war effort.D. The U.S. would feel that Germany was too much of a economic benefit to decide to go to war against Which officer of the state ensures that the states money is spent legally by a state agency?AuditorAttorney GeneralBudgeterChief Financial Officer find the measurement indicated in each parallelogram please help I don't know what it is A person was modeling a declining population with a decay factor of 0.5 using pennies. They started with 100 pennies and flipped all 100 pennies. Any pennies that landed on tails were removed. Then, the remaining pennies are flipped again and again the ones landing on tails were removed. The process is repeated until no pennies are left. How many flips is the most reasonable expectation for when this model should reach 0 pennies? 4 flips8 flips12 flips16 flips you have an intial amount of $45 in a savings account and you deposit an equal amount into the account each week. After 5 weeks the account holds $105. Write an equation that repersents the amount y (in dollors) of money in the account after x weeks Ayo i need help plz its confusing Which is the best explanation for why you may not always be able to observe rocks transforming from one type to another? What has happened to Chinas GDP since it began to reform its economy Off the 300 television sets sold at an electronics store last month, 90 were flat screen TVs . What is the ratio of the flat screen TVs to TVs sold last month ( geometry) what type of device is a projector ?a. inputb. memoryc. outputd. storage Craig measured a length as 0.034 millimeters. What is the margin of error? 0.03 mm to 0.04 mm 0.033 mm to 0.034 mm 0.0335 mm to 0.0345 mm 0.0345 mm to 0.0350 mm How should an illustration paper be organized? A. spacially B. evidence and examples C. chronological order what is the rate of change for the function y= 5x+ 25 What is the answer to f(1)= ? What determines which bases will be brought to the DNA strand during DNA replication? Who can help ? For BRAINLIST ( 6th grade work btw ) please help me During the metaphysical stage, which would have been the reaction to the present high school to drop our Mark is writing to the council to contest a parking fine. Select the sentences that contain language inappropriate for a formal text.Dear Sir or Madam,Im not happy at all about receiving a fine for parking at the local supermarket. I am certain I was not there longer than 45 minutes and should not, therefore, be fined. But here I am, holding a letter from you saying that, somehow, I was in fact there for nearly an hour! As if! If you can prove it, Ill pay it and not a penny from me until you do!Regards,Grant