exercism/python/leap/leap.py

3 lines
91 B
Python
Raw Normal View History

2018-03-05 19:40:19 +00:00
def is_leap_year(year):
return year % 400 == 0 or (year % 4 == 0 and year % 100 != 0);