Python program to find leap year

Given a year, check whether it is leap year or not. If the input year is leap year, print "Leap Year", else print "Not a Leap Year"

Input:

2004

Output:

Leap Year

Implementation:

# python program to find leap year

def checkLeapYear(year):
 return year%4==0

year = int(raw_input())
if checkLeapYear(year):
 print "Leap Year"
else:
 print "Not a Leap Year"