Using Sets in Python – Real Python (original) (raw)

James Uejio

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’s Included:

Downloadable Resources:

Related Learning Paths:

Sets in Python

16 Lessons 47m

1. Sets in Python (Overview)01:16 3. Immutable vs. Hashable03:14 4. Defining a Set in Python02:11 5. Length, Membership, and Iteration03:07 6. Union, Intersection, and Difference06:49 7. Disjoint, Subset, and Superset05:37 8. Add, Remove, Discard, Pop, and Clear02:44 9. Different Update Methods05:56 10. Augmented Assignment (Sets)01:32 12. Augmented Assignment (Frozen Sets)01:28 15. Sets in Python (Quiz) 16. Sets in Python (Summary)03:11

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:

← Browse All Courses