def pop_min(self):
        """
        Remove the minimum value and return it.
        """

        if self.root is NULL:
            raise KeyError("pop from an empty blackjack")

        self.root, value = self.root.delete_min()
        self._len -= 1
        return value
def pop_min ( self ) : if self . root is NULL : raise KeyError ( "pop from an empty blackjack" ) self . root , value = self . root . delete_min ( ) self . _len -= 1 return value
Remove the minimum value and return it.