Answers for "dictionary size in python"

2

python get size of dictionary

d = {"foo": "bar"}
size = len(d)
Posted by: Guest on March-07-2020
0

can u length a dictionary in python

obj = {0:"hello", 1:"there"}

for i in range(len(obj)):
  print(obj[i])
  
print(len(obj))
Posted by: Guest on February-18-2021
1

dictionary size in python

len(dict)
Posted by: Guest on March-03-2020

Code answers related to "dictionary size in python"

Python Answers by Framework

Browse Popular Code Answers by Language