I have a dictionary with duplicate values for one key. How could I remove the duplicates?
Initial dictionary:
dict = {"a": [1, 1, 1, 2, 1, 3, 2, 3, 1], "b": [4, 5, 2, 1, 1, 5, 6, 2, 5]}
Desired dictionary:
dict = {"a": [1, 2, 3], "b": [4, 5, 2, 1, 6]}