Python, Data Science, Data Engineering, Programming, Coding.
set1[1] = 2 # TypeError: 'set' object does not support item assignment # Concatenating two sets set3 = set1.union(set2) # Finding the intersection of two sets set3 = set1.intersection(set2) # Finding the difference between two sets set3 = set1.difference(set2) # Finding the symmetric difference