I’m stuck with the error message not really helping: “Your solver function should return a different string”.
Here is my code:
details = equation.analyze()
match details:
case {'slope': slope, 'intercept': intercept}:
details_list = [f'slope = {slope:.3f}', f'y-intercept = {intercept:.3f}']
case {'x': x, 'y': y, 'min_max': min_max, 'concavity': concavity}:
details_list = [f'concativity = {concativity}', f'{min_max} = ({x:.3f}, {y:.3f})']
for detail in details_list:
output_string += f'{detail}\n'