print("Hello World")
myName = input("What is your name?")
myVar = input("Enter a number:")
if myName == "MZ" or myVar != 0:
print("MZ is great")
elif myName == "MV":
print("MV is ok")
else:
print("Hello World")
No matter what I input as name myName or number myVar, it always prints MZ is great.
Please help. Thanks
input()returns. And since the comparison is (in)equality, no exception is raised.