Chapter 6 problem

i am stuck on the second half of the weekly assignment and I think it is correct. I have
else:
else:
else:
if year % 400 != 0:
return False

This is the outcome . It seems right to me but it isn’t
Pass
Pass
Pass
Pass
Pass
Test Failed: expected False but got True
Test Failed: expected False but got True
Pass
Pas

1 Like

To assist-- as I see it, we have 2 conditions, each with 2 components, that would make the “Leap Year” a “True”. Otherwise it should return a “False”, that it is NOT leap year.

Remember that there is another condition for the Year to be Leap:

  • century that is not divisible by 400 (years 1900, 1800, 2100 etc)