I am trying to test the existence of one of multiple values in an array and it isn't behaving as expected.
def valueInList(myList = "abcdefgh"):
if "a" or "b" in myList:
return True
else:
return False
For example:
>>> valueInList("abc") #should be True
True
>>> valueInList("def") #should be False
True
Why isn't this condition working?