I found an issue in this program

16 Mar
2022
16 Mar
'22
3:41 a.m.
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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
635
Age (days ago)
635
Last active (days ago)
0 comments
1 participants
participants (1)
-
Prakhar Varma