Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 17)
17.
What is the result of the expression set('python').intersection(set('java'))?
set()
{'a'}
{'p'}
{'j', 'a', 'v'}
Answer: Option
Explanation:
The intersection() method finds common elements, and in this case, there are none.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.