S.add(x) | Add “x” to the set. |
S.update(s) | Add all elements of sequence “s” to the set. |
S.remove(x) | Remove “x” from the set. If “x” is not present, this method raises a LookupError exception. |
S.discard(x) | Remove “x” from the set if it is present, or do nothing if it is not. |
S.pop() | Remove and return an arbitrary element, raising a LookupError if the element is not present. |
S.clear() | Remove all elements from this set. |
S.copy() | Make a new set. |
s.issuperset() | Check for a superset relationship. |
s.issubset() | Check for a subset relationship. |