# 7kyu - Leap Years

""" In this kata you should simply determine, whether a given year is a leap year or not. 
In case you don't know the rules, here they are:

    years divisible by 4 are leap years
    but years divisible by 100 are not leap years
    but years divisible by 400 are leap years

Additional Notes:

    Only valid years (positive integers) will be tested, so you don't have to validate them

Examples can be found in the test fixture. """


# def isLeapYear(year):
#     return year % 400 == 0 or (year % 4 == 0 and year % 100 != 0)

def isLeapYear(year):
    return year % 4 == 0 and year % 100 != 0 or year % 400 == 0


q = isLeapYear(1984), True
q
q = isLeapYear(2000), True
q
q = isLeapYear(1234), False
q
q = isLeapYear(1100), False
q
