Why doesn't it print both 3 and 7 if both statements are true? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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