<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def match(self, p_todo):
 """ Returns True when p_todo appears in the list of given todos. """

        try:
            self.todos.index(p_todo)
            return True
        except ValueError:
            return False