
- Python
- Beginner
About this Workshop
Dive into the basics of Python Sets! A set is an unordered collection of unique elements without duplicates. Elements are identified by membership rather than position.
This workshop will introduce you to how to create and manipulate sets as well as how to perform common set operations.
What you'll learn
- What is a set in Python
- When to use sets instead of lists or dictionaries
- Creating and manipulating Python sets
- Testing for membership of elements in a Python set
- Identifying the relationship between two Python sets
- Finding the union, intersection, difference, and symmetric difference of two or more Python sets
14 steps
-
Introducing Python Sets
5:56
-
Practice Files
-
The First Property: No Order
3:58
-
The Second Property: No Duplicates
7:24
-
Immutable Data Types
7:45
-
The Set Constructor Function
10:38
-
Sets Simplify Data Processing
5:03
-
Set Mutability: Adding Elements
4:44
-
Set Mutability: Deleting Elements
11:33
-
Set Membership & Relationship
11:03
-
Set Operations: Union & Intersection
6:55
-
Set Operations: Symmetric Difference & Difference
5:55
-
Exercise
7:03
-
Conclusion
Teacher
-
AJ Tran
AJ is an instructor who truly believes that new skills offer people the chance to remake their lives.
Through code, AJ was able to transition from the restaurant industry to the Tech industry.
Now, AJ is happy to help people from all around the world learn coding skills at Treehouse!