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