Sets in Python

James Uejio
James Uejio 15 Lessons 47m basics python

In this course, you’ll learn about sets. They’re a useful data structure that allows you to do some complex operations more easily. They come up everywhere in the real world and are important to understand.

By the end of this course, you’ll know:

  • What a set is
  • How to define a set in Python
  • How to operate on a set
  • How to modify a set
  • When to use sets
  • Why sets are a good choice for checking membership

What’s Included:

Downloadable Resources:

Related Learning Paths:

About James Uejio

James is an avid Pythonista and creates video tutorials for Real Python. He is a web developer at Wish and also produces lo-fi hip hop and plays jazz guitar.

» More about James

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

Thakur on Jan. 27, 2021

Excellent course James. Loved it.

Ghani on Oct. 22, 2020

Excellent course. Thank you!

Levi on March 14, 2020

Other tutorials I’ve watched on lists/sets never mentioned anything about hashes. Thanks for covering them!

Thomas on Feb. 6, 2020

Very enlightening, thank you.

« Browse All Courses