I am wondering why this only outputs "one" and "two" but not three since elif statements condition is met.
Thank you in advance
[CODE lang="python" title="A question on my course" highlight="9 and 10"]x = 1
y = 1.0
z = "1"
if x == y:
print("one")
if y == int(z):
print("two")
elif x == y:
print("three")
else:
print("four")[/CODE]
Thank you in advance
[CODE lang="python" title="A question on my course" highlight="9 and 10"]x = 1
y = 1.0
z = "1"
if x == y:
print("one")
if y == int(z):
print("two")
elif x == y:
print("three")
else:
print("four")[/CODE]