def allin(what, where): return all(x in where for x in what) def anyin(what, where): return any(x in where for x in what)