DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit