year.py

1
2
3
4
5
6
7
8
def is_leap_year(year):
    if year % 400 == 0:
        return True

    if year % 100 == 0:
        return False

    return year % 4 == 0

@AlbericC thinks this looks great

Comments


You're not logged in right now. Please login via GitHub to comment