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

What did Adam Smith believe would result from the combination of capitalism and a laissez-faire policy?
PLEASE HELP ASAP!! During the Holocaust, what has the international community done to prevent such an event from occurring again?
The Red Scare of the 1950’s was influenced by all of the following EXCEPT A) the Cuban Missile crisis, which brought on fears of nuclear war. B) the widening p
Why is a hotel room a perishable product? A. The room may be out of order. B. There will be too many guests staying in one room. C. The room may not be sold
What was the secession of the Southerner States?
Investigation Circles: Investigation 2I need help with the worksheet
A rectangle has a length of 10cm and a width of 6cm. How long is the diagonal of the rectangle
the rate of chemical weathering increases with this A) wedging B) Mountain Park C) horizons D) Surface area
Analyze the table of values for the continuous function, f(x), to complete the statements. A local maximum occurs over the interval . A local minimum occurs ove
Simplify (7x2 - 2x + 9) + (3x2 + 15x - 4)