23maverick23
2/7/2015 - 8:27 PM

Python: Test membership of multiple values in an array source: http://stackoverflow.com/a/6159329

Python: Test membership of multiple values in an array source: http://stackoverflow.com/a/6159329

all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
# >>> True