Advertisement
here2share

# merge_dict.py

Aug 17th, 2019
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. # merge_dict.py
  2.  
  3. dictA = {1:'a',2:'b'}
  4. dictB = {3:'c',4:'d'}
  5. dictC = dict(dictA.items()+dictB.items())
  6. print(dictC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement