x = [[1,1,1],[3,3,3]]
[1,1,1] in x
True
[1,1,1] and [2,2,2] in x
False
[1,1,1] and [3,3,3] and [2,2,2] in x
False
[1,1,1] and [2,2,2] and [3,3,3] in x
True
What's going on here? It returns True even though x only contains [1,1,1] and [3,3,3]. Even more curiously, when the order is changed, the result is False which is correct.