Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add values to dictionary key python

key = "somekey"
a.setdefault(key, [])
a[key].append(2)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #values #dictionary #key #python
ADD COMMENT
Topic
Name
5+3 =