I have two lists of input (call one a, the other b), I am trying to see if a can be matched to b if elements of a are removed. For example if a = [1, 1, 2, 3, 3, 3, 4] and b = [1,2,3] , the function would find that it can remove one occurrence of 1, two occurrences of 3 and the only occurrence of 4 so that a == b. I don't know how I would go about getting this to work in Python.I have two lists of input (call one a, the othe