M.Sc AI Practical Assignment Solution 3
M.Sc AI Practical Assignment Solution 3 Question: Write a Python program to Illustrate Different Set Operations. Code: Output: Union of set1 and set2: {1, 2, 3, 4, 5, 6, 7, 8} Intersection of set1 and set2: {4, 5} Difference of set1 and set2: {1, 2, 3} Symmetric difference of set1 and set2: {1, 2, 3, …