You are viewing a single comment's thread. Return to all comments →
to mitigate that run following code and that returns either True or False:
return (not(year%4) and (bool(year%100) or not(year%400)))
kpagcha statement works all you have to do is wrap the return statement inside a open and closed brackets like this.
return ( year % 4 == 0 and (year % 400 == 0 or year % 100 != 0))