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
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.
0
Thanks