def is_leap_year(n):
    """ 
        Return True if y is a leap year, False otherwise.
    """
    if n % 400 == 0:
        return True
    elif n % 100 == 0:
        return False
    elif n % 4 == 0:
        return True
    else:
        return False