Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

append to list in dictionary python if exists

dic.setdefault(key,[]).append(value)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #list #dictionary #python #exists
ADD COMMENT
Topic
Name
2+8 =