Ask Question
15 May, 22:08

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.

+4
Answers (1)
  1. 16 May, 01:30
    0
    Following are the code in python language set3=set1. intersection (set2)

    Explanation:

    In the python proogramming languge the intersection method is used to find the common value in the set. Bascially the intersection method is the operation of the set method.

    Following are the description of the above code

    The set1 is calling the function intersection with passing the pararmeter the of the set2 The set3 stores the result of the intersection.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume each of the variables set1 and set2 references a set. Write code that creates another set containing only the elements that are ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers