I have a list of lists and want to remove duplicates from it. I have a way to work but it looks ugly and I'm not sure if there's a better way to do it.
a_list = [[1,2],[2,3],[1,2]]
print [list(tup) for tup in set([tuple(x) for x in a_list])]
which prints:
[[1,2],[2,3]]
which is what I want. I'm using small lists for this, so am not concerned with speed but am interested in if there is a nicer way to do this.