size of dict in python code example
Example 1: python get size of dictionary
d = {"foo": "bar"}
size = len(d)
Example 2: can u length a dictionary in python
obj = {0:"hello", 1:"there"}
for i in range(len(obj)):
print(obj[i])
print(len(obj))