7. set in python
set is an unordered collection of unique items. Set is defined by values separated by comma inside braces.
Items in a set are not in ordered.
Since elements are not in ordered so we can access or change the elements of set using indexing or slicing.
Instead of that we have set operation such as union, interesection, different on two sets etc.
set eliminates duplicates.
Set built in function :