Vidyalelo
Python · Q12

Python Sets MCQs: Exam

Programming · Python · question 12

Q12

What is the output of the following code:my_set = 1, 2, 3my_set.remove(2)print(my_set)

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

Answer: Option B

Solution

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