Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add key to dictionairy


d = {'key': 'value'}
print(d)  # {'key': 'value'}

d['mynewkey'] = 'mynewvalue'

print(d)  # {'key': 'value', 'mynewkey': 'mynewvalue'}

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #add #key #dictionairy
ADD COMMENT
Topic
Name
8+3 =