Advertisement
treyhunner

Untitled

Feb 18th, 2022
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. >>> from collections import ChainMap
  2. >>> d = {"a": 4, "b": 5}
  3. >>> e = {"a": 10, "c": 8}
  4. >>> m = ChainMap(d, e)
  5. >>> dict(m)
  6. {'a': 4, 'c': 8, 'b': 5}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement