What does the following code print ?
if 2 + 5 == 8: print("TRUE")else: print("FALSE")print("TRUE")
TRUE
TRUE FALSE
TRUE TRUE
FALSE TRUE
Yes
No
if / else not used in python
None of the above.
What will be the output after following statements?
x = 2if x < 5: print(x)else: pass
2 3 4
1 2 3 4
2
None of These
What will the following code output?
x=0if x: print("True")else: print("False")
True
False
None
Error
nested if
if..else
else if
if..elif