8 lines
178 B
Python
8 lines
178 B
Python
|
def is_leap_year ( year ):
|
||
|
if year % 400 == 0:
|
||
|
return True
|
||
|
elif year % 100 == 0:
|
||
|
return False
|
||
|
elif year % 4 == 0:
|
||
|
return True
|
||
|
return False
|