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]
1 answer:
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
Answer:
false
true
false
true
true
Closeness to the true value of a measurement is accuracy
The answer is 127 I had that question before
Answer:
=SUM(A1:A4)
Explanation:
You can use the colon to shorthand a single continuous cell range.