4 lines
104 B
Python
4 lines
104 B
Python
def is_leap_year(year):
|
|
if year % 100 == 0:
|
|
return year % 400 == 0
|
|
return year % 4 == 0
|