We have to search the desired topic on the search box in the homepage
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
Answer:
Computer Monitors earned him maximum profit. For details, please check the attachment.
Explanation:
Please check the attachment.
Hello there!
They already gave you the answer just by saying "while serving his or her nation". So, the only way you can serve your nation is when you join the military.
So, the correct missing word is Joining the military.
I hope this helps!