In this python example we will write code to find the given number is Even or odd number
x = float(input("Insert any number: ")) if x>0: print("This is a POSITIVE number") elif x < 0: print("This is a NEGATIVE number") else: print("The number is ZERO") |
Output:
Insert any number: 121 |
Insert any number: -121 |