Python doesnt run this code correctly
if b or c in a:
print("true")
The reason is that python percieves this as
if (b) or (c in a):
And as if b is always True so code doesnt work as expected
This should be
if (b in a) or (c in a):
print("true")
Hope it helps
10
solved Checking if string contains if either of two substring returns true [duplicate]