SlayzzUK SlayzzUK
  • 10-02-2021
  • Computers and Technology
contestada

Can somebody do an Algorithm 2 for more?
(Python)

Can somebody do an Algorithm 2 for more Python class=

Respuesta :

quyenthao111
quyenthao111 quyenthao111
  • 22-02-2021

# If the number is positive, we print an appropriate message, else we print the opposite

num = 3

if num > 0:

print(num, "is a positive number.")

num = -1

elif num < 0:

print(num, "is a negative number.")

num = 0

else

print(num, "is neither positive nor negative.")

Answer Link

Otras preguntas

8) Which person is CORRECTLY matched with his invention or discovery? A) Vladimir Lenin: Communism B) Henry Bessemer: steam engine C) Eli Whitney: gene
The amount of regular unleaded gas purchased every week at a particular gas station follows the normal distribution with a mean of 50000 gallons and a standard
PLEASE HELP ASAP!!! IS THIS CORRECT?
How is the life cycle of a butterfly different from the life cycle of a hydra?
Is number 3 is correct and please help with number 4
how do I solve a 45 45 angle?
Which text from Reagan’s Speech, “Remarks on East-West Relations at Brandenburg Gate in West Berlin,” is an example of fallacious reasoning? A.) "But in the Wes
which would be another good title for the “article”
What is 8,400 divided by 7?
Anyone Great at math? Here you go! What is the equation of the function shown in the graph, given that the equation of the parent function is f(x)=(1/3)^x ?