0

If-condition

Q3/3. In the answer it should be 37 and not 3, what am I missing? please help

28th May 2020, 7:25 AM
SANDESH GOYAL
SANDESH GOYAL - avatar
2 Answers
+ 2
If you are referring to this question here: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2277/ The reason why it is only 3 is that the of statements are nested there. After checking the first one (>3) it then checks for <5. Since it's not, it doesn't even bother to check the inside block of code.
28th May 2020, 7:46 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
What's the question
28th May 2020, 7:33 AM
Namit Jain
Namit Jain - avatar