List of lists

saoirse_79 saoirse_79 at yahoo.com
Wed Nov 19 07:02:07 EST 2003


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







More information about the Python-list mailing list