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.
2 odpowiedzi
+ 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
0
Thnx for info