Is there any better way to do this? (avoiding to systematically compare key1 and key2)

```
for key1 in my_dict:
    for key2 in my_dict:
        if key1 != key2:
             #operation on my_dict[key1] and my_dict[key2]

```