Course

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
  • New

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
Slices
  • New

Slices

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"

Tuples
  • New

Tuples

Quite possibly the most common data type in all of Python, immutable lists, or tuples, are a great tool for every Pythonista.

Dungeon Game
  • New

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

Instructor

  • 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