Learn Interfaces by Building an Equation Solver - Step 63

Tell us what’s happening:

Getting the right output but cannot pass. “You should assign a list containing two f-strings having the form slope = and y-intercept = to details_list inside the case body. Remember to format the numerical values to display 3 decimal digits.”

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}']
            for detail in details_list:
                output_string += f'{detail:^24}\n'

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 63

you are not asked to add a loop in this step