I tried to remove duplicates of a list using `set` method and add that value with a key to an empty python dictionary.

But it gives me that error message

```
TypeError: list indices must be integers or slices, not str

```

I tried this way:

```
mydir =[]
person_trackID = "p7"
class_ids = [3 ,3 ,3 ]
print(mydir,person_trackID,set(class_ids))
mydir[person_trackID] = list(set(class_ids))
print(mydir)

```

please help me to solve this.Thank you