Another alternative would be to create a simple function when the set doesn't come to mind.
def tuple_containment(a,b): ans = True for i in iter(b): ans &= i in a return ans
Now just test them
>>> tuple_containment ((1,2,3,4,5), (1,2)) True >>> tuple_containment ((1,2,3,4,5), (2,6)) False
source share