Learn Interfaces by Building an Equation Solver - Step 64

Tell us what’s happening:

Whats causing the return of the solver method to be different than the solution, i have tried everything to make it to work but still it doesnt want to pass the solution, thankful for any help

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}\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

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 64

So close! Just two small details:

Then, assign details_list a list containing two strings with the format concavity = <concavity> and <min_max> = (<x>, <y>), respectively.

  1. See the variables have <brackets>, <min_max> is a variable here.
  2. There is a space between x, and y

I knew it would something like a missing space.
Thank you so much

1 Like