#checks for leap year

def is_leap_year(year):

    #check specific cases
    if year % 400 == 0:
        return True
    elif year % 100 == 0:
        return False

    #check general case
    elif year % 4 == 0:
        return True

    #default 
    return False

9de6cb37ca7bca881cecc5d8fc58a6e70d237d14
<mask token>

def is_leap_year(year):
    if year % 400 == 0:
        return True
    elif year % 100 == 0:
        return False
    elif year % 4 == 0:
        return True
    return False

#checks for leap year

def is_leap_year(year):

    #check specific cases
    if year % 400 == 0:
        return True
    elif year % 100 == 0:
        return False

    #check general case
    elif year % 4 == 0:
        return True

    #default 
    return False
