Part 5

Building a small database

Part 4 introduced the structures needed here. This section does not introduce another data structure. Instead, it combines familiar dictionaries in a small application.

The student database uses one dictionary for lookup by student name and another for lookup by course name. Its shape is therefore student name -> course name -> grade. As the program grows, pay attention to the complete nested data shape and to which function is responsible for each change.

Loading
Loading
You have reached the end of this section! Continue to the next section:

You can check your current points from the blue blob in the bottom-right corner of the page.