def solution(year: int)-> bool:
# your code here
return (year % 4 == 0 and year % 100 != 0) or year % 400 == 0
assert solution(2000) is True
assert solution(1984) is True
assert solution(1900) is False
def solution(year: int)-> bool:
return ((year % 100 != 0 and year % 4 == 0) or year % 400 == 0)
if __name__ == '__main__':
assert solution(2000) is True
assert solution(1984) is True
assert solution(1900) is False
def solution(year: int)-> bool:
if year % 100 ==0:
return year % 400 == 0
else:
return year % 4 == 0
assert solution(2000) is True
assert solution(1984) is True
assert solution(1900) is False
def solution(year: int) -> bool:
# your code here
# if year % 100 == 0 and year % 400 == 0:
# return True
# elif year % 100 != 0 and year % 4 == 0:
# return True
# else:
# return False
return year % 100 != 0 and year % 4 == 0 or year % 400 == 0
assert solution(2000) is True
assert solution(1984) is True
assert solution(1900) is False