Python program to find even odd numbers

x = int(input("Insert any number: ")) if x % 2 == 0: print("This is an EVEN number!") else: print("This is an ODD number!")

 

Output:

Insert any number: 121
This is an ODD number!

 

Insert any number: 512
This is an EVEN number!

 

In this python program we ask user to enter a number, then convert given input to integer and then will check the number is even or odd.