Solution Review: Size of a Dictionary Within a Dictionary

This lesson will explain how to determine the size of a dictionary within a dictionary.

Solution 1: Uselen() Function

To calculate the number of students in the dictionary, get the length of the total keys in the dictionary using len(student.keys())

The following python code demonstrates the concept.

Get hands-on with 1200+ tech skills courses.