exercism/python/leap/leap.py
2017-07-20 20:33:09 -04:00

8 lines
209 B
Python

def is_leap_year(year):
if (year % 4 == 0):
if (year % 100 == 0):
if (year %400 == 0):
return True
return False
return True
return False