Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 24)
24.
What is the result of the expression set([1, 2, 3]) & set([2, 3, 4])?
{1, 2, 3, 4}
{2, 3}
{}
{1, 4}
Answer: Option
Explanation:
The '&' operator performs the intersection of two sets, giving elements common to both sets.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.