Examveda

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,10,11}

B. {7,8}

C. Error as unsupported operand type of set data type

D. {5,6,10,11}

Answer: Option D


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python