Here you will get python program to check leap year.
A normal year contains 365 days while a leap year contains 366 days.
If the year is divisible by 4 then it is leap year except the century years (year that have 00 in end). A century year is leap year only if it is not divisible by 100 but divisible by 400.
For example 2000, 2016 are leap year while 2002, 2017 are not leap year.
Below program ask user to input a year and then check it is leap year or not.
Python Program to Check Leap Year
year = int(input("enter a year: "))
if(year%4==0 and (year%100!=0 or year%400==0)):
print("not leap year")
enter a year: 2016
Comment below if you have any queries related to above leap year program in python.