Learn Interfaces by Building an Equation Solver - Step 64

Tell us what’s happening:

I have written the complete code but still its not accepting it can someone please help me in this?

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

# 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/137.0.0.0 Safari/537.36

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 64

Can you provide more information?

What have you tried to troubleshoot? What error hints or messages are you getting? (You should know how this works by now…)

Can you look at the instructions and break them into point form steps?

like this:

  • do this
  • do that
  • then do this

You can also indicate which *line of code implements the step.

this is the code i have written so far

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

still its not accepting it i am not sure what is the exact reason

hey sorry to bother but i did got the code right will let you know if required.

I can’t really help if you don’t listen to my advice, sorry