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.
I am having some trouble with this one! So much so that I forfeited my points to see the answer. When I copy and paste the top solution (which was very close to my solution), I am still failing 3/6 test cases - what am I doing wrong??
return leap
if year%4 == 0:
if year%100 == 0:
if year%400 == 0:
leap = true
else:
leap = False
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 →
I am having some trouble with this one! So much so that I forfeited my points to see the answer. When I copy and paste the top solution (which was very close to my solution), I am still failing 3/6 test cases - what am I doing wrong??