Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Leap Year Checking by Phil15
def is_div(n: int, d: int) -> bool: return n % d == 0
def is_leap_year(year: int) -> bool:
return is_div(year, 4) and (not is_div(year, 100) or is_div(year, 400))
Oct. 7, 2023
Comments: