New course! Every coder should learn Generative AI!
Try a free lesson0
Why doesn't it print both 3 and 7 if both statements are true?
2 Answers
+ 1
Because those are nested if, look at the indentation.
0
As the first condition is meet,it jumps out of the progress.