'An external interface for comparing whether a and b are equal.'

def compare_answer(self, ans1, ans2):

    internal_result = self.check_formula(ans1, ans2, self.samples)
    return (internal_result == 'correct')
