Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dict_1 = {1:2, 2:(3,4), 3:5}
- dict_2 = {1:3, 2:4, 3:5, 4:2, 5:1}
- dict_r = {}
- for key1, value1 in dict_1.items():
- dict_r[dict_2[key1]] = dict_2[value1]
- print(dict_r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement