TDT4109/Exercise 5/9 - Arbeidsdager/local.py

8 lines
178 B
Python
Raw Normal View History

2020-10-07 13:13:24 +02:00
def is_leap_year ( year ):
if year % 400 == 0:
return True
elif year % 100 == 0:
return False
elif year % 4 == 0:
return True
return False