Search
 
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
Name
9+9 =