DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
aritmetics to a value in a dict python
my_dict = {"foo": 1, "bar": 2} my_dict["foo"] += 1 print(my_dict) # my_dict = {"foo": 2, "bar": 2}
PREVIOUS
NEXT
Tagged:
#aritmetics
#dict
#python
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit