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
Brilliant_brown [7]
3 years ago
11

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.
Computers and Technology
1 answer:
leonid [27]3 years ago
5 0

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();

You might be interested in
Calculate how many different pixel colours could be formed if one of the bytes gives the intensity of the red colour, one of the
Elena L [17]

Answer: The three RGB colors are each 8-bits (possible values [0.. 255], 2 to the power of 8 = 256) of each of Red, Green, and Blue. The three 8-bit RGB components can create up to 256×256×256 = 16.7 million possible RGB color combinations, called 24-bit "color".

Explanation:

6 0
3 years ago
Which term describes a character used to separate items in a text file?
frosja888 [35]

Answer:

extension describes a character used to separate items in a text

6 0
3 years ago
A company has recently learned of a person trying to obtain personal information of the employees illegally according to which a
wel
This is illegal. The person responsible for this could be sent to jail for a very long time. He should also be fired. 
7 0
3 years ago
Time 20,36,48 <br> answer please!!
anyanavicka [17]

Answer:

Pls subscribe my channel on yt

Name- CREATIVITY WITH MS

pls help me reach 500 subscribers

your subscription really matters

After subscribing pls make sure to comment also

I will give you 10 thanks and also if you have a channel I can subscribe it also

3 0
3 years ago
The primary input device for interacting with the operating system is the ____.
andre [41]
The primary input device is the Mouse.
3 0
3 years ago
Read 2 more answers
Other questions:
  • Assume the existence of a Building class with a constructor that accepts two parameters:_________ a reference to an Address obje
    5·1 answer
  • Consider the code fragment below (with nested loops). int sum = 0;for (int i = 1; i &lt; 5; i++) for (int j = 1; j &lt;= i; j++)
    15·1 answer
  • 1. Provide Java code for a simple class of your choice. Be sure to include at least one constructor, two methods and two fields.
    14·1 answer
  • When an application contains an array and you want to use every element of the array in some task, it is common to perform loops
    14·1 answer
  • 21
    5·1 answer
  • You are having difficulty changing permissions for a folder on an NTFS volume that was created by another user. How can you best
    6·1 answer
  • Weegee confused. <br><br> Why is weegee.org kitty website...?
    8·2 answers
  • Plsssssssss help me​
    8·1 answer
  • Internet transportation exchanges brings together shippers who post __________ and carriers that post __________ in order to arr
    11·1 answer
  • Which software package allows developers to deploy applications using the exact same environment in which they were developed?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!