exercism/python/leap/leap.py

3 lines
82 B
Python
Raw Normal View History

2017-08-15 14:55:28 +00:00
def is_leap_year(yr):
return yr % 4 == 0 and (yr % 100 != 0 or yr % 400 == 0)