Examveda
Examveda

What will be the output of the following code:
my_set = {1, 2, 3}
my_set.add(4)
print(my_set)

A. {1, 2, 3}

B. {4, 1, 2, 3}

C. {1, 2, 3, 4}

D. {1, 2, 3}

Answer: Option B


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python