• + 1 comment

    to mitigate that run following code and that returns either True or False:

    def is_leap(year): return (not(year%4) and (bool(year%100) or not(year%400)))