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:
def is_leap(year): return (not(year%4) and (bool(year%100) or not(year%400)))
Seems like cookies are disabled on this browser, please enable them to open this website
Write a function
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:
def is_leap(year): return (not(year%4) and (bool(year%100) or not(year%400)))