A set (set) is an unordered collection of unique elements. It is used to remove duplicates and to test membership quickly, and it supports union, intersection and difference operations. Elements must be hashable, and {} alone creates an empty dictionary, not a set.
Example
a = {1, 2, 3}
b = {2, 3, 4}
a & b # {2, 3}