I was wondering if anyone knows a short way to do the following.. I have 2 lists of list..eg [('a','b','c'),('k','-','l'),('1','2','3')] [('a','b','c'),('k','-','x'),('1','4','3')] I want to comapre the two lists of lists and count the number of times the sublists match. In the above example its 1