This method returns the original set as well as non-common items from the compared set. This method changes the original set.
This method takes a single argument.
- Set A is being taken with some random values.
- Set B is being taken with some random values.
- update() method is being applied on set A with the help of set B
- Value of set A is printed
- Set A with its own values and non-common items from set B.