how to check if a list contains multiple values of another list code example
Example: python if in list multiple
>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
True
>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
True