We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
because for (year/4, year/100, year/400), you need to insert the answer.
And you cannot do that because you do not know all the values for the
year variable. If you were to hardcode any year, for instance,
year = 2000
if year/4 == 500:
return True
I hope this helps.
Cookie support is required to access HackerRank
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 →
because for (year/4, year/100, year/400), you need to insert the answer. And you cannot do that because you do not know all the values for the year variable. If you were to hardcode any year, for instance,
year = 2000 if year/4 == 500: return True