print( & )difference(-):difference of contain only elements that are in ,but not in ={ , , , , ={ , , , , print( - )set symmetric difference(^):symmetric difference of and is set of elements in both and except that are common in both ={ , , , , ={ , , , , print( ^ #output )membership operators:it return boolean values ={' ', , , print(' 'in aprint( not in aset methods )add():this method is used to add elements in set syntaxexsetname add(elements={' ','java','cpp' add('python'print( )clear():this method is used to remove the elements from set syntaxsetname clear(exv={ , , , clear(print( )copy():this method is used to copy the elements from one to another set syntaxsetname copy(exs={ , , = copy(print( )difference():difference of contain only elements that are in ,but not in syntaxset difference(set exa={ , , , , ={ , , , , print( difference( ) )intersection()it contains common elements in both sets bv prasanthi dept of cse page