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
What was the strength of the Southern colonies? WILL GIVE BRAINLEST
Alex_Xolod [135]

Answer:

easy to grow crops should be the answer

4 0
3 years ago
Do you agree that Facebook is the best social media platform to use for interpersonal communication? Why or why not?
xxTIMURxx [149]
I think it is but it isn't as well, it could bring friends together but it could also split friendships.
4 0
3 years ago
Read 2 more answers
Which sentence in the passage conveys the message that drones can be used in the study of history?
DENIUS [597]
Well the drone could go over the city then with that footage make a 3D model of what it probably looked like
5 0
3 years ago
Read 2 more answers
Execute the command to know which tcp/ip and udp/ip ports are in use in a system whose ip address is 14.102.98.40.
ddd [48]
I think it is command and the key letter I at the same time
4 0
3 years ago
The horizontal bar at the top of a web page that typically holds a page title or course information is called a?
dem82 [27]

Answer B) Headers

Explanation:

I just took a Tech class, im pretty sure its headers. Hope this helps! -3-

3 0
3 years ago
Other questions:
  • Write a function named replace_at_index that takes a string and an integer. The function should return a new string that is the
    5·1 answer
  • How do you restore deleted notpad++ file?
    12·1 answer
  • After a security incident is verified in a SOC, an incident responder reviews the incident but cannot identify the source of the
    13·1 answer
  • Which of the following best describes Roblox?
    12·2 answers
  • Implement a java program to find the smallest distance between two neighbouring numbers in an array.
    7·1 answer
  • To determine the average of a range of numbers, click the ____ in the formula bar, then click average.
    13·1 answer
  • In 2011 a program named Watson running on an IBM supercomputer
    12·1 answer
  • For BitTorrent, which of the following is true:
    6·1 answer
  • I was just called a man in a wig ugh <br><br> Any tips for doxxing someone?
    6·1 answer
  • Which would you use to get the number of elements in a dictionary?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!