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
Yuliya22 [10]
3 years ago
12

Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the smalle

st and largest integers in the list.
Ex: If the input is:

10
5
3
21
2
-6
the output is:

2 and 21
Computers and Technology
1 answer:
Aleks [24]3 years ago
7 0

n = 1

lst = []

while n > 0:

   lst.append(n := int(input()))

lst.pop(-1)

print(str(min(lst)) +" and "+str(max(lst)))

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

You might be interested in
What is the name of the computer through which e-mail messages are sent and received?
nalin [4]
A mail server. --------------------------------------------
8 0
3 years ago
The ______________________ are incident management personnel that the incident commander or unified command assign to directly s
postnew [5]

Answer:

The Command Staff are the incident management personnel that the incident commander or unified command assign to directly support the command function.

Explanation:

Based on the information retrieved from the ICS (Incident Command System), to handle properly incidents that occur, Command Staff are assigned by the incident commander or unified command.

8 0
3 years ago
Can you use a backup camera when you take your drivers test
Anon25 [30]
Yeah, because it's normal to use the backup cameras when driving and according to the law they cannot tell you want not to do as long as you yourself are not breaking any laws.
7 0
4 years ago
To make an exact copy of an existing slide, from the new slide gallery
Anuta_ua [19.1K]
If you're talking about Microsoft PowerPoint, just go to the slide view, right click and click "Duplicate Slide".

I'm sure you can also Copy and Paste slides. 
3 0
3 years ago
Which of the following commands would instruct OSPF to advertise ONLY the 192.168.10.0/24 network in Area 0?
xz_007 [3.2K]

Answer:

First, you need to start the OSPF process by executing the command:

<em>Router (config)# router ospf {process-ID#}</em>

Then, you have to instruct the router to advertise the networks that are directly linked to it by entering this network command with the area ID number for that network:

Router (config-router)# network {192.168.10.0} {255.255.255.0} area {0}

8 0
4 years ago
Other questions:
  • Given that a method receives three parameters a, b, c, of type double, write some code, to be included as part of the method, th
    8·1 answer
  • The temperature of a plastic cube is monitored while the cube is pushed 8.7 m across a floor at constant speed by a horizontal f
    8·1 answer
  • Which of the following is NOT part of the Ethernet standards? O 1.802.3 O 2.802.2 O 3 LLC O4 pPp
    12·1 answer
  • Which one of the following items is an example of software?
    5·1 answer
  • Drag each tile to the correct box.
    8·1 answer
  • What type of computer system can be found in the computer lab at school?
    14·1 answer
  • The metric unit used for length
    5·1 answer
  • 8. Assuming str(rate) is "7.25," what output would be produced by the following snippet:
    15·1 answer
  • Why header files are needed in every c program ?expalin​
    14·1 answer
  • See attached. I have code typed out but still having problems.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!