You are viewing a single comment's thread. Return to all comments →
if you want to reduce redundancy, why not also return the bool of the comparisons to avoid explicitly checking for zero equivalency..
return bool(not year % 4 and (year % 100 or not year % 400))
irregardless.. you deserve an upvote