Using Sets in Python – Real Python (original) (raw)
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:
- 16 Lessons
- Video Subtitles and Full Transcripts
- 2 Downloadable Resources
- Accompanying Text-Based Tutorial
- Interactive Quiz to Check Your Progress
- Q&A With Python Experts: Ask a Question
- Certificate of Completion
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.
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: