Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dict append

default_data = {'item1': 1,
                'item2': 2,
          	    }

default_data.update({'item3': 3})
# or
default_data['item3'] = 3
 
PREVIOUS NEXT
Tagged: #python #dict #append
ADD COMMENT
Topic
Name
6+7 =