set(elementscreate set (elements is the initial list of items in the setaddelement(xadds to the set deleteelement(xremoves from the setif present if is not in the setthe set is left unchanged member(xreturns true if is in the set and false otherwise intersection(set returns new set containing just those elements that are common to this set and set union(set returns new set containing all of elements that are in this setset or both subtract(set returns new set containing all the elements of this set that are not in set