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

In the following sentence, what is the antecedent of the pronoun "it"? The class members chose Chicago to visit because it provides the best opportunity for edu
Can you get the same sum when you use 12 rather than 6 as a common denominator for the fractions 2\3 and 2\1? Explains
the whale shark can be as 50 feet long.The cigar shark is rarely more than 8 inches in length as an adult.How many cigar sharks would you need to put head to ta
Which one of the following parenting factors is associated with improved IQ scores in children? A. Strict discipline B. Lenient discipline and fewer rules C. A
35 girls and boys have planned for a walk. There is a ratio of 5 girls to 2 boys. How many boys are there
South America's most populous city is located in which country
Identify the number as rational or irrational. Explain -√127
if the gravitational pull got three times stronger what happens to our wieght
Which leader of the Hebrew people gave them the Ten Commandments? A. Isaac B. Moses C. Miriam D. Noah
Given the equation y = x + 9, what is the y-intercept?