def ask(self, question, default=None):
        """
        Prompt the user for input.
        """
        if isinstance(question, Question):
            return self._io.ask_question(question)

        return self._io.ask(question, default)