Similar to here: Does Python have a string contains substring method? This question only deals with one substring within a string, I want to test one of several.
Something like:
if 'AA' or 'BB' or 'CC' not in string:
print 'Nope'
However, if my test string is:
string='blahblahAA'
the if still evaluates to True and prints the statement. I'm probably just understanding the syntax incorrectly, any help would be appreciated.
Thanks!