Code the following in python. 1.Assume each of the variables set1 and set2 references a set. Write code that creates another set containing only the elements that are found in both set1 and set2, and assigns the resulting set to the variable set3. 2.Assume each of the variables set1 and set2 references a set. Write code that creates another set containing the elements that appear in set1 but not in set2, and assigns the resulting set to the variable set3. 3.Assume each of the variables set1 and set2 references a set. Write code that creates another set containing the elements that appear in set2 but not in set1, and assigns the resulting set to the variable set3.
Code the following in python.
1.Assume each of the variables set1 and set2 references a set. Write code that creates another set containing only the elements that are found in both set1 and set2, and assigns the resulting set to the variable set3.
2.Assume each of the variables set1 and set2 references a set. Write code that creates another set containing the elements that appear in set1 but not in set2, and assigns the resulting set to the variable set3.
3.Assume each of the variables set1 and set2 references a set. Write code that creates another set containing the elements that appear in set2 but not in set1, and assigns the resulting set to the variable set3.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images