0

Do you see where the problem is?

hi guys, i am trying to display the number of days in the month of february but my program shows 28 all the time. https://code.sololearn.com/cTHghkNqLeyx/?ref=app

7th Nov 2022, 12:56 PM
Audibert
Audibert - avatar
2 Answers
+ 4
The function anne_bissextile has no return statements. In this case, it returns None to the caller - the "if" statement. None is a falsy value, so the "if" statement will always understand the condition as False. Solution: return a boolean informing whether the year is leap or not.
7th Nov 2022, 1:20 PM
Emerson Prado
Emerson Prado - avatar
0
Thanks
8th Nov 2022, 11:32 AM
Audibert
Audibert - avatar