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
Leto [7]
3 years ago
13

In Python please.

Computers and Technology
1 answer:
SOVA2 [1]3 years ago
5 0

Answer:

negatives = []

zeros = []

positives = []

while True:

   number = input("Enter a number: ")

   if number == "":

       break

   else:

       number = int(number)

       if number < 0:

           negatives.append(number)

       elif number == 0:

           zeros.append(number)

       else:

           positives.append(number)

for n in negatives:

   print(n)

for z in zeros:

   print(z)

for p in positives:

   print(p)

Explanation:

Initialize three lists to hold the numbers

Create a while loop that iterates until the user enters a blank line

Inside the loop:

If the number is smaller than 0, put it in the negatives list

If the number is 0, put it in the zeros list

Otherwise, put the number in the negatives list

When the while loop is done, create three for loops to print the numbers inside the lists

You might be interested in
Why do we need to connect computers"​
Gennadij [26K]

Answer:

batteries cant last connected to nothing forever probably

8 0
2 years ago
What does the term measure refer to in typography
olchik [2.2K]

You're right, the correct answer is C.


6 0
3 years ago
Read 2 more answers
1. [6 points] Convert the 5-bit two's complement number 11001 (base-2) to base-10. Show work. Hint: this is the reverse of what
denis-greek [22]

Answer:

99.71 is your answer ok

3 0
3 years ago
A Uniform Resource Locator (URL) consists of three separate parts: network protocol, host, and web browser.
FrozenT [24]
That is false. are you doing it on a computer course.                                             <span />
3 0
4 years ago
Read 2 more answers
Which of the following statements is false? Question 16 options: A) With non-static interface methods, helper methods can now be
Delicious77 [7]

Answer:

The best answer is "A"

Explanation:

With non-static interface methods, helper methods can now be declared directly in interfaces rather than in separate classes.

5 0
3 years ago
Read 2 more answers
Other questions:
  • What comes to mind when you see/hear QWERTY?
    14·2 answers
  • Tony is interviewing with the hiring manager for an IT job.
    11·1 answer
  • What three things in the third generation of computing helped get programming enthusiasts more involved with computers? Select 3
    12·2 answers
  • printArray is a method that accepts one argument, an arrayof int. The method prints the contents of the array; it does not retur
    5·1 answer
  • How can data be calculated?
    14·2 answers
  • When an instruction is sent to the CPU in a binary pattern, how does the CPU know what instruction the pattern means
    7·1 answer
  • Tascake Gets Free Brainliest Because he didnt get it<br><br> Tascake Heres Brainliest
    6·2 answers
  • What does error code 18 indicate?
    11·1 answer
  • Why AI strategy is important?
    15·1 answer
  • By the mid-1990s, how did revenue generated from video games compare to revenue generated from movies?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!