Python Program to Check Whether a Given Number is Even or Odd

This Python program checks whether a given number by user is Even or Odd using Python if-else.

Python Source Code: Even or Odd


# Check Even or Odd

number = int(input("Enter number: "))


if number%2==0:
    print("EVEN")
else:
    print("ODD")

Output

Run 1:
---------------	
Enter number: 11
ODD.

Run 2:
---------------	
Enter number: 24
EVEN