0
Why not implemented elif in the line8
2 Réponses
+ 6
Because num is >= 6, so the second elif is excuted. However, the number is < 17, which means the nested if will not be excuted.
And finally, you put another elif, which is only executed if none of the previous if/elif were executed, which is not True.
+ 2
Thanks Aymane Boukrouh