Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python is dict

squares = {1: 1, 2: 4, 3: 9}
print(type(squares) is dict)  # True
print("memory address of type(squares):", id(type(squares)))
print("memory address of dict:", id(dict))  # Should have same ID as type(squares)
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #dict
ADD COMMENT
Topic
Name
6+5 =