Set is a Data structure in Python similar to List, does not allow duplicate values.

Set is a collection of elements with unique values, order is not preserved.

What are advantages of Sets?

Sets stores unique elements, and order is not preserved. Accessing Set element for check an element exists or not is faster compared with List.

Python Set Declaration

set={}