Examveda

What will be the output of the following Python code?
>>> a={1,2,3}
>>> b=a
>>> b.remove(3)
>>> a

A. {1,2,3}

B. Error, copying of sets isn't allowed

C. {1,2}

D. Error, invalid syntax for remove

Answer: Option C


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python