Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create dictionary in python

d = {'key': 'value'}
print(d)
# {'key': 'value'}
d['mynewkey'] = 'mynewvalue'
print(d)
# {'key': 'value', 'mynewkey': 'mynewvalue'}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #dictionary #python
ADD COMMENT
Topic
Name
4+6 =