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.
Reversing the order almost works, but you have to add an else block returning False at the end to capture cases where none of the if blocks execute (like for the year 1992) and also change all elif statements to if statements. I.e:
Write a function
You are viewing a single comment's thread. Return to all comments →
Reversing the order almost works, but you have to add an
else
block returningFalse
at the end to capture cases where none of theif
blocks execute (like for the year 1992) and also change allelif
statements toif
statements. I.e:This passes all the test cases.