info = input("Enter your input:")
if info == "hi" or "hello":
print("hello")
elif info == "namaste":
print("namaste")
else:
print("Error")
In this program I am trying get a input from user and seeing that if it is equal to h i, hello or namaste.
But when I am executeing it , it is printing hello when I write namaste.
I can’t find any thing wrong in this program neither pycharm is telling me that there is a bug or something.
Can you please help me with this program.
Looking foreword to your response,
Prakhar Varma
Sent from Mail for Windows