Vidyalelo
Python · Q50

Python Sets MCQs: Exam

Programming · Python · question 50

Q50

What will be the output of the following code:my_set = 1, 2, 3new_set = my_set.copy()print(new_set)

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

Answer: Option A

Solution

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