0

What is the difference between this kind if else stye.

If statement: Else: Statement: If statement: Else: Statement Other style that confused me! Is like this If statement: If statement: If statement: Else: Else: Else: Can someone explain me the difference and the output.

6th Oct 2020, 2:19 AM
Restituto A. Ochea
Restituto A. Ochea - avatar
2 Respuestas
+ 1
first one is normal if else if you != "Restituto" print (' hey") if you.isSololearner: print(' Great! ") here the output would be Great! second one is nested if else if you != "Restituto" print (' hey") if you.isSololearner: print(' Great! ") output would be nothing as the second if statement won't be evaluated because it is inside the first if statement which is false
6th Oct 2020, 2:41 AM
‎ ‏‏‎Anonymous Guy
0
Thnx for info
6th Oct 2020, 4:23 AM
Restituto A. Ochea
Restituto A. Ochea - avatar