adplus-dvertising
frame-decoration

Question

Which of the following functions will return the symmetric difference between two sets, x and y?

a.

x | y

b.

x ^ y

c.

x & y

d.

x – y

Posted under Python

Answer: (c).x & y

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following functions will return the symmetric difference between two sets, x and y?