List of lists
From: saoirse_79 (saoirse_79_at_yahoo.com)
Date: 11/19/03
- Next message: Andrew Bennetts: "Re: smtp server"
- Previous message: Francis Avila: "Re: Callable generators (PEP 288: Generator Attributes, again)"
- Next in thread: Denis S. Otkidach: "Re: List of lists"
- Maybe reply: Denis S. Otkidach: "Re: List of lists"
- Maybe reply: Marc Boeren: "RE: List of lists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 Nov 2003 12:02:07 -0000 To: python-list@python.org
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
- Next message: Andrew Bennetts: "Re: smtp server"
- Previous message: Francis Avila: "Re: Callable generators (PEP 288: Generator Attributes, again)"
- Next in thread: Denis S. Otkidach: "Re: List of lists"
- Maybe reply: Denis S. Otkidach: "Re: List of lists"
- Maybe reply: Marc Boeren: "RE: List of lists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]