0
Does the first if statment take priority on the innerbones?
3 Respuestas
+ 1
x=4
if x < 5:
print("5")
if x < 8:
print("8")
# Output: 5 8
x=4
if x > 5:
print("5")
if x < 8:
print("8")
# No output
In the second code the condition x>5 is False and so the statement under "if x<8:" is never executed.
0
x=4
if x < 5:
print("5")
if x <8:
print("8")
0
Both are correct what deos its print?