Advertisement
calfred2808

#Python Merge to dict

Jul 18th, 2020
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. # How to merge two dictionaries
  2. #in Python 3.5
  3.  
  4. x = {'a': 1, 'b':3}
  5. y = {'c': 11, 'd':14}
  6.  
  7.  
  8. z = {**x,**y}
  9.  
  10. print(z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement