I have this array which contains some dictionaries :
a = [{'name': 'Peter', 'email': '', 'color': 'red'},
{'name': 'Peter', 'email': '', 'color': 'red'},
{'name': 'Peter', 'email': '', 'color': 'red'}]
But I tried to do this : list(set(a))
and it does not work unfortunately I get this :
TypeError: unhashable type: 'dict'
Do you know how can I solve this I mean I would like to have :
a = [{'name': 'Peter', 'email': '', 'color': 'red'}]
Thank you !