Track 6 · Lesson 7 of 12
Sets: unique values and group comparisons
Remove duplicates, test membership quickly, and compare groups with union, intersection and difference.
You will be able to
- Create sets, including the empty set, and add and remove items
- Use a set to remove duplicates and to test membership quickly
- Combine and compare groups with union, intersection, difference and symmetric difference
- Return results in a predictable order by sorting a set
Included with a Formula Quest membership
It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.
View Formula Quest memberships
Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.