adplus-dvertising
frame-decoration

Question

What is the output of the following piece of 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}

Posted under Python

Answer: (d).{5,6,10,11}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following piece of code?