Examveda

What will be the output of the following Python code?
>>> a={5,6,7,8}
>>> b={7,8,9,10}
>>> len(a+b)

A. 8

B. Error, unsupported operand '+' for sets

C. 6

D. Nothing is displayed

Answer: Option B


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python