I have 3 lists and I am trying to find matching combinations.
mylist1 = ["a", "b", "c", "d", "e", "f", "x", "y", "p"]
mylist2 = ["a", "b", "c", "d", "p", "q"]
mylist3 = ["a", "b", "c", "d", "e", "f", "g", "h", "q"]
g, h, x and y do not have any match so I will discard them. The result ["a", "b", "c" ] 3 is valid but I need to discard that as well because that is the subset of ["a", "b", "c", "d"] 3 The expected output is:
["a", "b", "c", "d"] 3
["a", "b", "c", "d", "e", "f"] 2
["a", "b", "c", "d", "p"] 2
["a", "b", "c", "d", "q"] 2
mylist3?