<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_answer_valid(self, ans):
 """Validate user's answer against available choices."""

        return ans in [str(i+1) for i in range(len(self.choices))]