Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 41)
41.
What is the result of the expression set([1, 2, 3, 4]).intersection(set([3, 4, 5, 6]))?
{3, 4}
{}
{1, 2, 3, 4, 5, 6}
{1, 2}
Answer: Option
Explanation:
The intersection() method finds the common elements between two sets.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.