The following script is returning false, when I think that it should be returning true. Any idea what is going on here? Thanks so much, guys!
test=['Pop']
test1='Pop'
if (test==('POP' or 'Pop' or 'pop' or ['POP'] or ['Pop'] or ['pop'])):
print "yes"
else:
print "no"
Currently, the output is, 'no'.
if test == 'POP' or '...' or '...'isn't doing what you think it is: possibly have a look in the fine documentation how boolean logic works'POP'.lower() == 'poP'.lower()['Pop'] == ['Pop'] is True