I have a list that contains list of tuples as follows.
mylist = [['xxx', 879], ['yyy', 315], ['xxx', 879], ['zzz', 171], ['yyy', 315]]
I want to remove the duplicate tuples from mylist
and get an output as follows.
mylist = [['xxx', 879], ['yyy', 315], ['zzz', 171]]
It seems like set
in python does not work for it.
mylist = list(set(mylist))
Is there any fast and easy way of doing this in python (perhaps using libraries)?