1. Write a program to create a set
2. Write a program to create an empty set
3. Write a program to create a set and add a new element
4. Write a program to create an intersection of sets.
5. Write a program union of sets
6.Write a Python program to remove items 10, 20, and 30 from the following set at once.
set1 = {10, 20, 30, 40, 50}
7.Write a program return a set of elements present in Set A or B, but not both
set1 = {10, 20, 30, 40, 50}
set2 = {30, 40, 50, 60, 70}
8. Write a program to return a new set of identical items from two sets
set1 = {10, 20, 30, 40, 50}
set2 = {30, 40, 50, 60, 70}
9. Write a program to get Only unique items from two sets
set1 = {10, 20, 30, 40, 50}
set2 = {30, 40, 50, 60, 70}
10.Write a program update the first set with items that don’t exist in the second set
set1 = {10, 20, 30}
set2 = {20, 40, 50}
1. What is a set.
2. What is an empty set
3. What is the difference between the two sets.
4. What is the difference between list and set.
5. How to apply all remove methods in the set.