Learn Interfaces by Building an Equation Solver - Step 64

Tell us what’s happening:

the white spaces tire me , what am i missing here ???

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},{y})']
    for i in details_list:
        output_string += f'{i}\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/137.0.0.0 Safari/537.36

Challenge Information:

Learn Interfaces by Building an Equation Solver - Step 64

Welcome to the forum @haarsh.eth

Are you doing this bit?

Format <x> and <y> to display 3 decimal digits.

Happy coding

yeah i did it but its not in this code snippet as reset my code and did again


so i was missing a space after comma. all good now

1 Like