I ran into an issue while trying to make aliases for an input.
inp = "h" #the input
if inp == "s":
print("stand")
elif inp == "h":
print("hit")
else:
print("else")
This code behaves exactly as expected s makes it take the first branch h second and anything else the third. But when i add or into the if statement
inp = "h"
if inp == "s" or "stand":
print("stand")
elif inp == "h":
print("hit")
else:
print("else")
the first branch gets picked regardless on the input provided. What I expected to happen was to get the same logic as before. Am I misusing OR or this should work but doesnt?