Python Sets
Python Sets
The major advantage of using a set, as opposed to a list, is that it has a highly
optimized method for checking whether a specific element is contained in the
set.
Creating a Set
Note – A set cannot have mutable elements like a list, set or dictionary, as its
elements.