Python for Data Work
LESSON 1.1

Lists, dicts, and the types you will use

Learn key techniques and workflows in Python for Data Work.

8m
beginner
31,450 students

Overview

Lists, dictionaries, sets, and tuples cover almost everything before a dataframe shows up. Picking the right one is a performance decision as much as a style one.

In this lesson you will:

  • Choose between list, dict, set, and tuple
  • Index, slice, and iterate without off-by-one errors
  • Understand mutability and why it bites

Pro Tip

Use caching and revalidation wisely to ensure your app stays fast and data remains fresh without unnecessary requests.

Resources