We can add an item to a set in Python using the add() function.
With the following code in Python, shown below, we get the following output.
Because a set is a collection of unique items, it doesn't change the set, because 3 already exists in it.
Therefore, we have the same set as before we ran this function.