Skip to content
Home » Even Number Python Program

Even Number Python Program

Learn about Even Number Python Program in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.

Even Number Python Program

# Python program to check given number is an even or not

# inputs
num = 10

# check number is even or not
if(num % 2 == 0):

 print('{0} is an even number'.format(num))
else:
 print('{0} is not an even number'.format(num))

Output:

10 is an even number

Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.

Similar Code : Factorial Program in Python using math.factorial()