24th Jan 2020, 8:54 PM
Yusof
Yusof - avatar
2 Respuestas
+ 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.
24th Jan 2020, 8:57 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
24th Jan 2020, 9:04 PM
Yusof
Yusof - avatar