I have a list of lists as so:
data = [[4,5,0],[3,4,0],[4,5,0],[1,2,0],[1,2,0],[4,5,0],[3,4,0],[2,3,0]]
What I want is to return a list of unique lists (order doesn't matter) as:
unique_data =[[4,5,0],[3,4,0],[1,2,0],[2,3,0]]
My first thought was to do:
for x,y in zip(data, data[1:])):
if x == y:
unique_data.append(x)
But this only compares two lists that are directly next to each other. Any other ideas are greatly appreciated. Thank you.