The operation used to get all the items that are unique to each set is called _______.
- difference()
- intersection()
- symmetric_difference()
- union()
The 'symmetric_difference()' operation returns a new set containing all elements that are unique to each of the sets being operated on. It computes the symmetric difference between sets.
Loading...
Related Quiz
- When using the unittest framework, which method is executed before each test method is run?
- Which Python module provides a set of tools for constructing and running scripts to test the individual units of your code?
- Which Python built-in function would you use to convert a string into a number?
- You need to design a data structure that allows for retrieval of the most recently added element and removal of the least recently added element. How would you design such a data structure?
- How can you call (or invoke) a function named example?