Vidyalelo
Python · Q11

Python Sets MCQs: Exam

Programming · Python · question 11

Q11

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

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

Answer: Option D

Solution

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