Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add key to dictionairy

# Init the dictionary
d = {}
# Add pairs
key = "Foo"
value = "Bar"
d[key] = value
# or 
d['What_ever_key'] = 'What_ever_value'
Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #add #key #dictionairy
ADD COMMENT
Topic
Name
9+7 =