syntaxset intersection(set exa={ , , , , ={ , , , , print( intersection( ) )union():it contains all the elements of set and set syntaxset union(set exa={ , , , , ={ , , , , print( union( ) )symmetric_difference():symmetric difference of and is set of elements in both and except that are common in both syntaxset symmetric_difference(set exa={ , , , , ={ , , , , print( symmetric_difference ( ) )discard():it takes single element and removes it from set syntaxsetname discard(elementexn={ , , , discard( print( )remove():this method searches for given element in the set and removes it syntaxsetname remove(elementexn={ , , , remove( print(nn={ , remove( #keyerror note:if we try to remove the element in the set which is not present ,it gives keyerror )pop():it removes random element in the set syntaxsetname pop(exs={' ',' ',' ' pop(print( )isdisjoint()two sets are said to be disjoint,if they have no common elements(true/falsesyntaxset isdisjoint(set ={ , , ={ , , bv prasanthi dept of cse page