Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 40)
40.
What is the purpose of the set.symmetric_difference(other_set) method?
Returns the common elements between two sets.
Returns the elements that are unique to each set.
Checks if two sets are equal.
Combines two sets and removes duplicate elements.
Answer: Option
Explanation:
The symmetric_difference() method returns the elements that are unique to each set.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.