Write a program in python to check whether a year is a leap year or not.


A year is said to be a leap year if it is divisible by 4. It mostly occurs every 4 years but every 100 years we skip a leap year unless it is divisible by 400.

Hence important point to note is that every year which is divisible by 4 is not necessarily a leap year, if the year is divisible by 100 then it should be divisible by 400 to be called a leap year.

Let’s write code in python to check leap year.

Recommended: If else in Python


If you have any suggestions or doubts then please comment below.

Leave a Reply

2 × four =