Learn Interfaces by Building an Equation Solver - Step 64

Tell us what’s happening:

It’s not passing, but the output looks correct when tested with quadratic function.

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 64

1 Like

<min_max> = (<x>, <y>)

({x:.3f},{y:.3f})

Looks good I think you are just missing a space after the comma here.

You were right thank you. I missed that.

1 Like