QUESTION IMAGE
Question
write a program that asks the user for a number. report whether that number is positive, zero, or negative. you should use an if - elif - else statement.
Step1: Get user input
num = float(input("Enter a number: "))
Step2: Check conditions
if num > 0:
print("Positive")
elif num == 0:
print("Zero")
else:
print("Negative")Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
num = float(input("Enter a number: "))
if num > 0:
print("Positive")
elif num == 0:
print("Zero")
else:
print("Negative")