1. Which of the following data types in Python is mutable and does not allow duplicate elements?
2. How can you add an element to a set in Python?
3. Which method is used to remove an element from a set?
4. What does the len() function do when applied to a set or tuple?
5. What is the purpose of the set() constructor in Python?
6. What is the purpose of the union() method for sets?
7. In Python, how can you check if an element exists in a set?
8. What method is used to remove an element from a set without raising an error if the element is not present?
9. What is the output of the following code:
my_set = {1, 2, 3}
print(my_set)
my_set = {1, 2, 3}
print(my_set)
10. What will be the output of the following code:
my_set = {1, 2, 3}
my_set.add(4)
print(my_set)
my_set = {1, 2, 3}
my_set.add(4)
print(my_set)