Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

appending objects to a list contained in a dictionary python

dates_dict.setdefault(key, []).append(date)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #appending #objects #list #contained #dictionary #python
ADD COMMENT
Topic
Name
8+8 =