Python – Set symmetric_difference_update() Method
The Python set symmetric_difference_update() method updates the original set by removing items that are present in both sets, and inserting other items.
The Python set symmetric_difference_update() method updates the original set by removing items that are present in both sets, and inserting other items.
The Python set union() method returns a set that contains all items from the original set, and all items from the specified set(s).
The Python set update() method updates the current set by adding items from another set or sets (or any other iterable).