1
2
3
4
5
6
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)