Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 28)
28.
What is the result of the expression set('programming') - set('python')?
{'r', 'g', 'a', 'm', 'i'}
{'p', 'y', 't'}
{'r', 'o', 'm', 'i', 'n'}
{'p', 'r', 'o', 'g', 'a', 'm', 'i', 'n'}
Answer: Option
Explanation:
The '-' operator performs the set difference, giving elements that are in the first set but not in the second.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.