Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dct = {"a": "b", "c":"a"}
- dct2 = dct.copy()
- for key, value in dct2.items():
- if value not in dct2:
- dct[value] = key
- dct
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement