Examveda

What is the output of the following code:
my_set = {1, 2, 3, 4, 5}
my_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: Option D


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python