Next Index

Python Examples

1. Program to find even or odd number.

n = int(input('Enter a value'))

if n%2==0:
	print('Even')
else:
	print('Odd')
Input : 25

Output : Odd




Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands
Google+