DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
merged all dictionaries in a list python
>>> result = {} >>> for d in L: ... result.update(d) ... >>> result {'a':1,'c':1,'b':2,'d':2}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#merged
#dictionaries
#list
#python
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit