What will be the output of the following Python code?
>>> a={5,6,7,8}
>>> b={7,8,10,11}
>>> a^b
>>> a={5,6,7,8}
>>> b={7,8,10,11}
>>> a^b
A. {5,6,7,8,10,11}
B. {7,8}
C. Error as unsupported operand type of set data type
D. {5,6,10,11}
Answer: Option D
Join The Discussion