I wanted to check if every element of one list or tuple is part of another one using Python. A set has the issubset()-method, but I couldn’t find anything build-in for a tuple. It was, however, rather quickly done:

``` »> r = (1,2) »> l = (3,4,1,5,2) »> False not in [ e in l for e in r ] True »> r = (1,9) »> False not in [ e in l for e in r ] False

``` Why I’m posting this? I just found it cute code, somehow.