Question: Please do in Python (Sets)Given the sets below, write python statements to: set1 = {1,2,3,4,5} set2 = {2,4,6,8} set3 = {1,5,9,13,17} a. Create a new
Please do in Python
(Sets)Given the sets below, write python statements to: set1 = {1,2,3,4,5} set2 = {2,4,6,8} set3 = {1,5,9,13,17} a. Create a new set of all elements that are in set1 or set2, but not both
b. Create a new set of all elements that are in only one of the three sets set1,set2, and set3.
c. Create a new set of all elements that are exactly two of the sets set1, set2, and set3.
d. Create a new set of all integer elements in the range 1 through 25 that are not in set1.
e. Create a new set of all integer elements in the range 1 to 25 that are not in any of the three sets set1, set2, or set3.
f. Create a new set of integer elements in the range 1 to 25 that are not in all three sets set1, set2, and set3.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
