Vidyalelo
Python · Q75

Python Sets MCQs: Exam

Programming · Python · question 75

Q75

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

A.
{1, 2, 3, 4, 5}
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