DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+2 =
Submit