def isLeapYear(year): # return (not year % 4 and year % 100) or (not year % 400) return (not (year % 4 and year % 100)) or (not year % 400)