1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leya [2.2K]
3 years ago
11

A bug collector collects bugs every day for seven days. Write a program in Python that finds the highest number of bugs collecte

d over a course of seven days. The program should ask for the number of bugs collected each day, and when the loop is finished, the program should display the highest number of bugs collected in the week. Your output will look something like this:

Computers and Technology
1 answer:
Mama L [17]3 years ago
5 0

Answer:

mylist = [ ]

for i in range(7):

   mylist.append (int(input("Enter the number of bugs for each day ")))

print(mylist)

print("The highest number of bugs is ")

print(max((mylist)))

Explanation:

  1. Create and Initialize an empty (mylist)
  2. Using the .append method, we request and add the bugs for each day into the list
  3. print out the list
  4. Use the max function to find the highest number of bugs in the list and print it out

You might be interested in
Which are types of lines? Choose three answers.
alekssr [168]
Straight
Curvilinear
Rectilinear
7 0
3 years ago
Which task is most suitable for creating an algorithm?
Anna71 [15]
A.
-HomeTaey
(ask anytime)
if I get it wrong, sorry
8 0
3 years ago
Read 2 more answers
Solesbee v. Balkcom (1950) was one of two cases that challenged the constitutionality of capital punishment prior to 1968. What
Karo-lina-s [1.5K]

Answer:

Whether a governor is allowed to determine an inmates sanity where finding an inmate insane would prevent his or her execution

Explanation:

The Solesbee v. Balkcom (1950) was a case where a state in its policy was against the execution of convicts who goes insane after being convicted and sentenced. According to this case, under the Fourteenth Amendment, such is not considered denial of due process if the governor is vested with the power to determine if a convict is insane after sentence or not, and if he is actually insane, a governor should be the one to say if the convict is to put in an insane asylum.

4 0
3 years ago
Which print setting enables multiple slides to be printed on one page?
seraphim [82]
Handouts
see the image for reference

3 0
3 years ago
Read 2 more answers
The flowchart shape for input or output is an oval. <br> a. True <br> b. False
Alisiya [41]
The answer is FALSE.Because an oval represents a start or end point.
A Parallelogram is the symbol that represents input/output
4 0
3 years ago
Other questions:
  • How does a main program recieve info from a function in c++?
    6·1 answer
  • Write an algorithm that receives 500 numbers from the user and prints out the maximum of the numbers.
    9·1 answer
  • 1) Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a s
    11·1 answer
  • Omar is preparing to deliver a presentation to his class. It is about a program to collect samples from an asteroid that has bee
    13·1 answer
  • What third-party application serves as an alternative to OneNote?
    10·2 answers
  • A friend is interested in keeping track of information about his album collection. He is not concerned about whether or not the
    11·1 answer
  • Bcr is an out put device true or false​
    13·2 answers
  • I really need this answer please
    5·1 answer
  • What is a computer modem?​
    9·1 answer
  • Which term refers to a shorthand method for identifying network and host bits in an ip address?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!