I've tried using Counter and itertools, but since a list is unhasable, they don't work.
My data looks like this: [ [1,2,3], [2,3,4], [1,2,3] ]
I would like to know that the list [1,2,3] appears twice, but I cant figure out how to do this. I was thinking of just converting each list to a tuple, then hashing with that. Is there a better way?
Countersounds fine, as long as you know what your data looks like and you know it should always be a list of lists.[1, 2, 3]the same as[3, 2, 1]?