calendar_lib/constants.py
def leap(year: int) -> bool:
    """
    Given year X >= 1582, returns whether X is a leap year
    """
    # Multiples of 100 must also be of 400
    if year % 100 == 0:
        return year % 400 == 0
    else:
        return year % 4 == 0

    Given year X >= 1582, returns whether X is a leap year
    
Given year X >= 1582, returns whether X is a leap year
Given year X > = 1582 returns whether X is a leap year
def leap(year: int) -> bool:
    if year % 100 == 0:
        return year % 400 == 0
    else:
        return year % 4 == 0
def leap ( year : int ) -> bool : if year % 100 == 0 : return year % 400 == 0 else : return year % 4 == 0
Given year X >= 1582, returns whether X is a leap year
Given year X > = 1582 returns whether X is a leap year
"""
    Given year X >= 1582, returns whether X is a leap year
    """ # Multiples of 100 must also be of 400
year
int