def is_leap_year(year):
    """
    Indicates whether the specified year is a leap year.

    Every year divisible by 4 is a leap year -- 1912, 1996, 2016, 2032, etc.,
    are leap years -- UNLESS the year is divisible by 100 AND NOT by 400. Thus,
    1200, 1600, 2000, 2400, etc., are leap years, while 1800, 1900, 2100, etc.,
    are not.

    Why do we have this logic?
    This is because the earth orbits the sun in approximately 365.2425 days.
    Over 400 orbits, that comes out to 146,097 days (365.2425 * 400).

    Ignoring the century rule (making every fourth year a leap year, including
    1800, 1900, etc.), gives us 146,100 days, overcounting by 3 days every
    400 years. Thus, making 3 out of every 4 century boundaries non-leap years
    fixes this overcounting.
    """
    return year % 400 == 0 or (year % 4 == 0 and year % 100 != 0)