Python, jeśli na liście wiele
>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
True
Ugliest Unicorn
>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
True