0
If statement output
num = 7 if num > 3: print("3") if num < 5: print("5") if num ==7: print("7") please tell me why output of this code is 3.. i don't get it :/
2 odpowiedzi
+ 9
This is an example of nested if statement.........
See carefully that the second condition is not executed , so the if num == 7 statement doesn't run at all ........
Hope it helps..........
0
Thank you so much ^^