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:
easy to grow crops should be the answer
I think it is but it isn't as well, it could bring friends together but it could also split friendships.
Well the drone could go over the city then with that footage make a 3D model of what it probably looked like
I think it is command and the key letter I at the same time
Answer B) Headers
Explanation:
I just took a Tech class, im pretty sure its headers. Hope this helps! -3-