This blog is available for sale. More than 150 published articles. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
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
Explanation: The function x ^ y returns the symmetric difference between the two sets x and y. This is basically an XOR operation being performed on the two sets.
© 2022-2023 Python Circle