Python Program to Check Leap Year

Here you will get python program to check leap year.

A normal year contains 366 days while a leap year contains 365 years.

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

Output

enter a year: 2016
leap year

Comment below if you have any queries related to above leap year program in python.

One thought on “Python Program to Check Leap Year

Leave a Reply

Your email address will not be published. Required fields are marked *