Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 27)
27.
What is the result of the expression set('abc') ^ set('cde')?
{'a', 'b', 'c', 'd', 'e'}
{'a', 'b'}
{'c'}
{'a', 'b', 'd', 'e'}
Answer: Option
Explanation:
The '^' operator performs the symmetric difference, giving 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.