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=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
Join The Discussion