muhammad_nasif

TASK_07

Apr 12th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. dictionary_1 = {'A': 1, 'B': 2}
  2. dictionary_2 = {'C': 3, 'D': 4}
  3. new_dictionary = {}
  4.  
  5. for key, value in dictionary_1.items():
  6.     new_dictionary[key] = value
  7.  
  8. for key, value in dictionary_2.items():
  9.     new_dictionary[key] = value
  10.  
  11. print(new_dictionary)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment