<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def confirm(self, question, default=False, true_answer_regex="(?i)^y"):
 """ Confirm a question with the user. """

        return self._io.confirm(question, default, true_answer_regex)