Python Set symmetric_difference_update() method

Facebooktwitterredditpinterestlinkedinmailby feather

Python Set symmetric_difference_update() method

The set.symmetric_difference_update() method in Python updates the original set by removing items that are present in both sets and inserting the other items of the set.

Syntax

Parameter

set- This parameter represents the first set that is used for checking the matches.

set1- This parameter represents the second set that is also used for checking the matches.

Return

None

Example 1

Output

Example 2

Output

Facebooktwitterredditpinterestlinkedinmailby feather