Python Program to Check if a Number is Positive, Negative or 0

Words
0
Reading
0 min
Listen
Play
6y
num = float(input("Enter a number: "))
if num > 0:
   print("Positive number")
elif num == 0:
   print("Zero")
else:
   print("Negative number")
Python Program to Check if a Number is Positive, Negative or 0 | Ecency