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

Join The Discussion