Examveda

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

A. 0

B. {1,2,3,4}

C. {1,2,3}

D. Nothing is printed

Answer: Option D


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python