To check if number is positive,negative or zero

print("Enter a number to be check whether it is positive ,negative or zero:")
num=int(input())

if num==0:
    print("number is zero")
elif num>0:
    print("number is positive")
else:
    print("number is negative")

 

%d bloggers like this: