Introduction

Completed

So far, each variable you've worked with has held a single value. But most real programs need to manage groups of related values—a shopping cart, a list of scores, a user profile, or a table of settings. Python provides two essential built-in collection types for organizing this kind of data: lists and dictionaries.

In this module, you learn how to store ordered items in a list and access them by position, how to store labeled data in a dictionary and access it by key, and how to decide which structure is right for a given problem. You'll apply both to build an app that tracks a customer's order.

Note

We recognize that different people like to learn in different ways. You can choose to complete this module in video-based format or you can read the content as text and images. The text contains greater detail than the videos, so in some cases you might want to refer to it as supplemental material to the video presentation.