Home / Python Dictionary / How to Determine How Many Items a Dictionary Has in Python In this example we will show how to determine how many items (key-value pairs) a dictionary has in Python. Source Code mydict = { 'name': 'Steven', 'age': 24, 'ID': 123456 } print(len(mydict)) Output: 3