Examveda

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

A. {1, 2, 3}

B. {1, 2, 3, 1, 2, 3}

C. {1, 1, 2, 2, 3, 3}

D. {2, 1, 3}

Answer: Option A


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python