Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Merge Two Dictionaries

dict_1 = {1: 'a', 2: 'b'}
dict_2 = {2: 'c', 4: 'd'}

print(dict_1 | dict_2)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #Merge #Two #Dictionaries
ADD COMMENT
Topic
Name
8+6 =