Q. What will be the output of following Python code?
Code:
set1={2,5,3}
set2={3,1}
set3={}
set3=set1&set2
print(set3)
β
Correct Answer: (A)
{3}
set1={2,5,3}
set2={3,1}
set3={}
set3=set1&set2
print(set3)
You must be Logged in to update hint/solution