Python Sets A set contains an unordered collection of unique and immutable objects. Set Operations add(element) clear copy difference discard(element) remove(element) - same functionality as discard, but raises a KeyError if element is not present. union intersection pop