The 'add( )' Function is used to add an element to the Set.
x = {"Mohan", "Kriti", "Salim"} x.add("Nikhil") print(x)
So, in the above code we have created a 'Set' and initialised to the variable 'x'.
Next, we have used the 'add( )' Function to add 'Nikhil' to the Set.
And 'Nikhil' gets inserted at any location. And that's decided by Python.
And we get the below output,