exercism/python/leap/leap.py

3 lines
91 B
Python

def is_leap_year(year):
return year % 400 == 0 or (year % 4 == 0 and year % 100 != 0);