Python Program to input any number and check whether it is positive, negative or zero


n=int(input('enter any number'))

if (n>0):

  print(n,'is positive')

elif (n<0):

  print(n,'is negative')

else:

  print(n,'zero') 

Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.