Examveda

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

A. {1, 2, 3}

B. {1, 3}

C. {1, 2}

D. {3}

Answer: Option B


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python