<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)