I found an issue in this program
15 Mar
2022
15 Mar
'22
8:41 p.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 Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
920
Age (days ago)
920
Last active (days ago)
0 comments
1 participants
participants (1)
-
Prakhar Varma