Question: Write a class. Your class should have an _init_method with three parameters: self. seti, and set2). Assume that seti and set are sets. This method
Write a class. Your class should have an _init_method with three parameters: self. seti, and set2). Assume that seti and set are sets. This method should store the sets in attributes of self. Your class should have a method called process with two parameters: self and set3 . Assume set3 is a set. This method should return a set containing all items from sets that are in seti or set2 but not both. For example, if set1 is {1, 2, 3, 4. 5} and setz is {1, 3, 5, 7, 9} and set3 is {4, 5, 6, 7, 8} your method should return {4,7}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
