Python Collections

One of the most common paradigms in Python is the concept of a collection. From a string collecting characters, to lists or tuples collecting any kind of ordered data you want, to dictionaries giving you keys for different bits of data, you'll find yourself using collections all the time.

In this course, we focus on lists, tuples, and dictionaries. How to use them and how they can make different Python tasks easier.

Python Collections

5 Achievements

Lists Redux

Lists Redux

Lists are an old friend to anyone that's done even a little Python. They have a lot to offer us, though, so let's explore their methods and uses a bit further.

0 of 11 Steps Complete


We don't always want the entirety of a list or string. Sometimes we just want part of it, and Python calls these sub-string or sub-lists "slices"

Dungeon Game

Dungeon Game

Now that you're comfortable with lists, dictionaries, and tuples, let's build a bigger game together.

0 of 7 Steps Complete

What you'll learn

  • Lists
  • Tuples
  • Dictionaries
  • Variable packing and unpacking


  • Kenneth Love

    Besides teaching Python at Treehouse, Kenneth Love is a husband & father. He created a few popular Python libraries, worked at most levels of the web stack, & was the Creative Director of a newspaper. He likes board games, whiskey, activism, & dry humor.

Download videos

You have to sign up for Treehouse in order to download course videos.

Sign up