DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python Adding a new key-value pair in dictionary
alien = {'color': 'green', 'points': 5} alien['x_position'] = 0
Source by nostarch.com #
PREVIOUS
NEXT
Tagged:
#python
#Adding
#pair
#dictionary
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit