Why doesn't it print both 3 and 7 if both statements are true? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why doesn't it print both 3 and 7 if both statements are true?

14th Sep 2016, 5:18 PM
Kirsty Lukas
Kirsty Lukas - avatar
2 ответов
+ 1
Because those are nested if, look at the indentation.
14th Sep 2016, 5:50 PM
Zen
Zen - avatar
0
As the first condition is meet,it jumps out of the progress.
29th Sep 2016, 5:24 AM
Henry
Henry - avatar