I am trying to check if shorter tuples are contained inside a longer one, but I need the order in which things are placed in the larger tuple to be respected during the checking. Here is an example:
A = ('A', 'B', 'C')
B = ('A', 'B')
C = ('A', 'C')
set(B).issubset(A)
set(C).issubset(A)
My expectation is set(B).issubset(A)
to return True
(as it is), but set(C).issubset(A)
should return False
. Is there a way to do this without a tedious for loops?