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
QveST [7]
2 years ago
8

In Python write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs

the values of the list.
Ex: If the input is:

10
5
3
21
2
-6
the output is:

[10, 5, 3, 21, 2]
Computers and Technology
1 answer:
stealth61 [152]2 years ago
3 0

Answer:

l = []

while True:

 no = int(input())

 if no>0:

   l.append(no)

 else:

   break

print(1)

If this helped consider marking this answer as brainliest. Have a good day.

You might be interested in
1. Data in a smart card can be erased
Ostrovityanka [42]

Answer:

false

true

false

true

true

5 0
3 years ago
Read 2 more answers
Match the definition with the correct term: Closeness to the true value of a measurement
LenKa [72]
Closeness to the true value of a measurement is accuracy
7 0
4 years ago
The _____ address range is reserved for a computer to communicate with itself and is called the loopback.
Papessa [141]
The answer is 127 I had that question before
4 0
4 years ago
Which of the following occupations groups falls under the professional and related cluster?
velikii [3]
All choices are correct.
6 0
3 years ago
Which most properly uses the SUM function to sum the values in cells A1 through A4?
Snowcat [4.5K]

Answer:

=SUM(A1:A4)

Explanation:

You can use the colon to shorthand a single continuous cell range.

7 0
4 years ago
Read 2 more answers
Other questions:
  • Prior to the world wide web as we know it today, the internet was chaotic, without any ____.
    9·1 answer
  • Used prevalently on the web, it allows for secure messages to be sent between parties without having to agree on, or share, a se
    7·2 answers
  • What date does GTA 6 come out<br> A. 2020<br> B. 2019<br> C. 2021<br> D. 2022
    10·2 answers
  • Which is an example of an incremental approach to solving a problem?
    15·1 answer
  • When working with arrays, most programming languages perform ________, which means they do not allow programs to use invalid sub
    5·1 answer
  • Precautionary measures to be observed when using ICT tools​
    15·1 answer
  • Give an example of at least one information system you know or have heard of.
    9·2 answers
  • Ok.,so i have a sopitify account and by accident i pressed the downlaod on button and it says start you free trial i pressed tha
    11·2 answers
  • My feelings alwayss T-T
    14·2 answers
  • Any please answer this How much resistance is required to gen-erate 50 mA of current from a 5 volt bat-tery?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!