Advertisement
here2share

# dict_update.py

Mar 28th, 2019
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. # dict_update.py
  2.  
  3. d1 = {'a': 10, 'b': 20, 'c': 30}
  4. d2 = {'b': 200, 'd': 400}
  5.  
  6. d1.update(d2)
  7. print d1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement