<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def yesno(self, s, yesno_callback, casual=False):
 """Ask a question and prepare to receive a yes-or-no answer."""

        self.write(s)
        self.yesno_callback = yesno_callback
        self.yesno_casual = casual