Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from collections import ChainMap
- diccionario1 = {'x': 3, 'z': 5}
- diccionario2 = {'y': 7, 'z': 11}
- combinacion_mapas = ChainMap(diccionario1, diccionario2)
- print(combinacion_mapas['x'])
- print(combinacion_mapas['y'])
- print(combinacion_mapas['z'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement