I start learning python. Here is my logic
A = 123
B = 124
if 124 != A or B:
#do something
print("value doesn't match")
so above statement shouldn't return print because value 124 == B but why I am getting the print statement? I am not understanding this. I know it's vey silly question but as a beginner I am not understanding this concept. please help me to understand why my or logic return print where I already have matching value.
if I try:
if B != 124:
#do something
print("value doesn't match")
then it's working but why not working A or B
together ?