I created a list of lists and then tried to get a distinct list of the lists using set(), but it appears as though i cant use list on a set.
Is there another way to accomplish this with a concise statement that performs well?
x = [1,2]
y = [1,2]
z = [2,3]
xyz = 
TypeError: unhashable type: 'list'
xyz = [[1,2],[2,3]]
If the list members are hashable, it will work
x = [1,2] y = [1,2] z = [2,3] xyz =  xyz.append(tuple(x)) xyz.append(tuple(y)) xyz.append(tuple(z)) print xyz xyz_set = set(xyz) print xyz_set