Summary

Completed

In this module, you learned how to organize related data using Python's two most important collection types.

You used lists to store ordered sequences of items and access them by index, and dictionaries to store labeled data and access values by key. You compared the two and learned when each is the better fit for a problem. Finally, you combined both to build an inventory manager.

Tip

To continue learning Python, move on to the next module: Read and write files.