exercism/python/leap/leap.py
2017-08-15 09:55:28 -05:00

3 lines
82 B
Python

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