Write a Python program to check if a number is positive or negative

Hello readers in this article I will show you how to write a Python program to check if a number is positive or negative.

CODE

n=int(input('Please enter any number'))
if(n>0):
    print("positive number")
elif(n<0):
    print("negative number")
elif(n==0):
    print("Zero")

Output

Please enter any number -10
negative number

As you can see with this program you can check if a number is positive or negative

Thank you