def remove(self, value):
        """Remove an element. If not a member, raise a KeyError."""
        if value not in self:
            raise KeyError(value)
        self.discard(value)
def remove(self, value):
        """Remove an element. If not a member, raise a KeyError."""
        if value not in self:
            raise KeyError(value)
        self.discard(value)
def remove ( self , value ) : if value not in self : raise KeyError ( value ) self . discard ( value )
Remove an element. If not a member, raise a KeyError.
Remove an element . If not a member raise a KeyError .