Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # merge_dict.py
- dictA = {1:'a',2:'b'}
- dictB = {3:'c',4:'d'}
- dictC = dict(dictA.items()+dictB.items())
- print(dictC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement