Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to store the variable in dictionary

>>> mydict = {"message": {"hello": 123456}}
>>> print(mydict['message'])
{'hello': 123456}
>>> print(mydict['message']['hello'])
123456
Source by www.compciv.org #
 
PREVIOUS NEXT
Tagged: #store #variable #dictionary
ADD COMMENT
Topic
Name
1+3 =