exercism/python/leap/leap.py

3 lines
82 B
Python

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