Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

append dictionary python

>>> d1 = {1: 1, 2: 2}
>>> d2 = {2: 'ha!', 3: 3}
>>> d1.update(d2)
>>> d1
{1: 1, 2: 'ha!', 3: 3}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #dictionary #python
ADD COMMENT
Topic
Name
3+3 =