Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dictionary in python

my_dict = {"key": "value", "a": 1, 2: "b"}
print(my_dict["key"])
# Output: value
print(my_dict["a"])
# Output: 1
print(my_dict[2])
# Output: b
Source by gto76.github.io #
 
PREVIOUS NEXT
Tagged: #dictionary #python
ADD COMMENT
Topic
Name
9+8 =