Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 44)
44.
What does the set.symmetric_difference_update(other_set) method do?
Updates the set with common elements.
Removes common elements from the set.
Updates the set with elements unique to the other set.
Returns a new set with the common elements.
Answer: Option
Explanation:
The symmetric_difference_update() method updates the set with elements unique to the other set.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.