Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 14)
14.
What is the purpose of the set.symmetric_difference(other_set) method?
Returns the common elements between two sets.
Returns the union of two sets.
Returns the difference between two sets.
Returns the symmetric difference between two sets.
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.