I was making a short program just for fun that when my name is inputted, it will say 'hi programmer'. That worked but the other conditions with elif and else did not work, instead they only printed out the if condition. `a =input('What is your name')
a =input('What is your name')
if a == 'Hasan' or 'hasan':
print('Hi programmer!')
elif a == 'Bob' or 'bob':
print('Big fat boi')
else:
print(a + ", i'm sorry to say this, but you suck!!!")
I was looking through StackOverflow but couldn't find the answer I was looking for. I also looked at other websites but they never seemed to really help. The output of my if statement should print out 'hi programmer!' and it does. However, When I checked my elif and else condition, it still outputted 'hi programmer' when the output for the elif condition should have been 'Big fat boi' and the output for the else statement should have been "(a), i'm sorry to say this but you suck!!!" I'm sorry if I haven't specified anything, this is my first question.