A set (set) is a collection of unique, unordered elements, also based on a hash table. The membership test is O(1) on average. It is used to deduplicate and to compute union, intersection and difference.
Example
a = {1, 2, 3}
b = {2, 3, 4}
a & b # {2, 3}