Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest number in it.

Answers

Answer 1

Answer:

hope this helps and mark my ans brainliest if it helped.

Explanation:

def main():

Numbers = []

n = input("Enter the number: ")

while n != 0:

Numbers.append(n)

n = input("Enter the number: ")

if len(Numbers) > 0:

max = Numbers[0]

min = Numbers[0]

for i in range(0, len(Numbers)):

if max < Numbers[i]:

max = Numbers[i]

if min > Numbers[i]:

min = Numbers[i]

print Numbers

print "Largest: ", max

print "Smallest: ",min

  

main();


Related Questions

In addition to different gameplay styles, games also have different player states.
True
False

Answers

Answer:

Games differ wildly on how many stats they have. If you take an RPG like Zelda, does Link have a strength stat or an intelligence stat? No! An RPG doesn't need a lot of stats to be good but nearly all RPGs will have some stats.

Explanation:

multimedia computer system required the following hardware component they are what​

Answers

To develop the system of multimedia we use the various hardware/softwarecomponents are:

The CPU: The CPU, which

is recommended for a multimedia computer should be Pentium IV or other advanced chips. The Monitor: The multimedia PC should be equipped with a monitorhaving Super

Video Graphics Arrays (SVGA) card.

Mark me as brainliest please

How has cell phones impacted our society.

i really need this please.

Answers

Cell phones have impacted the society very much. Cell phones help us communicate with people that aren’t so close by us. Cell phones have changed so much over generations and have let us understand the way the internet works nowadays.
Cell phones have impacted our society because now we can text someone without having to see them and we can also call someone from far away and that is always good because some people can’t see their friends or family. Also people spend lots of time on cell phones. We can also now take pictures and capture moments.

Hope this helped

HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP

Answers

Answer:

I should be C! :D

Answer:

B

Explanation:

Other Questions
Nine students are running for the school council. The student with the most votes will become class president while the student with the second-highestvotes becomes vice president, and the student with the third-highest number of votes becomes secretary How many different ways could this happen? What is the area of a circle that has the diameter of 4? can u guys help me with this 3) You flip a coin six times and then roll a six-sided die. Find the number of possible outcomes Which answer choice is a section title? (A) Physical wellness (B) Maintain Your Body (C) Stay active (D) Making healthy choicesabout physical wellness Which process is exothermic? a) the vaporization of water b) the freezing of water c)the sublimation of dry ice d ) the boiling of liquid nitrogen Which statement about labels for mental disorders is TRUE? 2 points People tend to ignore the labels when interpreting behavior. People tend to interpret a person's behavior in relation to the label, and labels are unnecessary for proper treatment of mental disorders. Labels do not impact the interpretation of behavior, and labels are needed to determine the proper treatment for mental disorders. People tend to interpret a person's behavior in relation to the label, and labels are needed to determine the proper treatment for mental disorders. How does Pern define democracy?entPernistEalism,"n, 1950as a government that serves the peopleas a government that is elected by the peopleO as a government that defends its own interestsO as a government that is chosen by the militaryAnswer : A (NO LINKS) Select the new sources of energy that gave Industry a real boost during the Industrial Revolutioncoalwaterelectricitysteam enginesoil will give brainliest if your answer is correct (question is in the picture) These marbles are placed in a bag and twoof them are randomly drawn.What is the probability of drawing twoyellow marbles if the first one is placed backin the bag before the second draw?Give your answer as a ratio, reduced tosimplest terms.[?]Hint: Multiply the probability of the 1st Event by theprobability of the 2nd Event to get your answer. No links i rlly need help Distinguish between critical thinking and creative skills and explain why these are essential in problem solving in a game the player wins if he rolls a 4 on a number cube if the numbered cube is rolled 24 times then what is the reasonable prediction for the number of unsuccesful rolls How did the effects of the great flood of 1927 influence the technological advancements related to flood control in Mississippi? list 3 outdoor safety tips. help me please Someone plz help me I beg u Find the slope of each line what gives information to the brain B) A company president would like to offer a 4.00 L cylinder containing 500 g of chlorine in the new catalog. The cylinders you have on hand have a rupture pressure of 40 atm. Use both the ideal gas law and the van der Waals equation to calculate the pressure in a cylinder at 25C. Given a = 6.58 L2 atm mol-2 and b = 0.056 L mol-2, Cl =35.5. (5 marks)