python length of keys in dict code example
Example 1: dictionary python length
print(len(thisdict))
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))
print(len(thisdict))
obj = {0:"hello", 1:"there"}
for i in range(len(obj)):
print(obj[i])
print(len(obj))