Possible Duplicate:
Python: removing duplicates from a list of lists
What is the best way to remove duplicates from a list of lists?
I was trying to use set like this:
L1 = [['fox', 'dog'],['bat', 'rat'],['fox', 'dog']]
L1 = list(set(L1))
Unfortunately, I get a TypeError: unhashable type: 'list'.
In my list there are two occurrences of ['fox', 'dog']. I want L1 to remove the duplicate and look like this:
L1 = [['fox', 'dog'],['bat', 'rat']]