Learn Interfaces by Building an Equation Solver - Step 64

Tell us what’s happening:

Not too sure what the problem seems to be here. I keep getting the error about my solver expecting to return a different string. Both concavity and min_max are returning properly with proper text formatting when I test with print(solver(quadr_eq)). Any thoughts? Thanks!

Your code so far

# User Editable Region

    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'concavity = {concavity}', f'{min_max} = ({x:.3f}, {y:.3f})']

    for detail in details_list:
        output_string += f'{detail:^24}\n'

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 64

Finally, after the match/case block, iterate through details_list and add each item to the current value of output_string. Make sure that each string item ends with a newline character. Do not use any additional format option here.

I would read this last sentence very carefully.