Learn Interfaces by Building an Equation Solver - Step 64

Tell us what’s happening:

i am very not sure what i am doing wrong. i tried even doing f’{detail}’ to not have any formating. but it still does not pass. It keeps saying Your solver function should return a different string.

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/127.0.0.0 Safari/537.36 Edg/127.0.0.0

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 64

Hi @GauravSK2001 and welcome!

You’re not that far off from solving this. There are just some style-matching issues for the test.

You won’t need any fill characters for your output_string variable under your for-loop.
Double-check ({x:+.3f},{y:+.3f}), there are two issues here.

I hope this points you toward your solution. Happy coding!