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
Aucun commentaire:
Enregistrer un commentaire