# A set contains unique elements of which the order is not important s = set() s.add(1) s.add(2) s.remove(1) print(s) # Can also be created from a list (or some other data structures) num_list = [1,2,3] set_from_list = set(num_list)

**Here is what the above code is Doing:**

1. Create an empty set

2. Add 1 to the set

3. Add 2 to the set

4. Remove 1 from the set

5. Print the set

6. Create a list of numbers

7. Create a set from the list