code = (input("Write a number: "))
print (code)
if code == "1" or "2":
print ("bad")
elif code =="3":
print ("good")
else:
print ("hmmm" )
Output:
Write a number: 3
3
bad
I'm confused, shouldn't the output be "good" instead of "bad"?