Introduction to Leap Year Program in Python. A year is considered a leap year if that year is exactly divisible by 4, except for years that end with 00(century year). A century year is a leap year if that is exactly divisible by 400. However, a year which not divisible by 400 and divisible by 100 is not a leap year.