Vidyalelo
Python · Q73

Python Sets MCQs: Exam

Programming · Python · question 73

Q73

What will be the output of the following code:set1 = 1, 2, 3set2 = 3, 4, 5print(set1.intersection(set2))

A.
{3}
Answer
B.
{1, 2, 3}
C.
{3, 4, 5}
D.
{1, 4, 5}

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board