Question 1
Which set operator is used to perform the symmetric difference operation on two sets in python?
Question 2
Which operator is used to test if one set is a subset of another set in python?
Question 3
What is the result of the following code snippet?
set1={1, 2, 3, 4}
set2={3, 4, 5, 6}
result=set1 | set2
print(result)
Question 4
What is the result of the following set operation?
Question 5
Which operator is used to test if two sets are disjoint in python?
Question 6
What is the result of the following set operation?
Question 7
What is the result of the following set operation?
Question 8
What is the result of the following code snippet?
set1={1, 2, 3, 4}
set2={3, 4, 5, 6}
result=set1 & set2
print(result)
Question 9
Which operator is used to perform the union operation on two sets in python?
Question 10
Which set operator is used to perform the intersection operation on two sets in python?