DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python one line key increment or add
my_dict[key] = my_dict.get(key, 0) + 1
PREVIOUS
NEXT
Tagged:
#python
#line
#key
#increment
#add
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit