List of lists

S

saoirse_79

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,468
Latest member
Fannie44U3

Latest Threads

Top