If I have a dictionary, and I want to remove the entries in which the value is an empty list `[]` how would I go about doing that?

I tried:

```
for x in dict2.keys():
    if dict2[x] == []:
        dict2.keys().remove(x)

```

but that didn't work.