Python - Count the Number of Keys in a Python Dictionary

38

pythonCopydict1 = {'a':1,'b':2,'c':3}
print(len(dict1.keys()))

Comments

Submit
0 Comments