Tell us what’s happening:
My code is not passed what is wrong here please:
Sorry, your code does not pass. Keep trying.
Your solver function should return a different string.
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})']
for item in details_list:
output_string += f'{item}\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/126.0.0.0 Safari/537.36
Challenge Information:
Learn Interfaces by Building an Equation Solver - Step 64
--------Details---------
slope = 2.000
y-intercept = 3.000
Details are displayed with an =
and watch the spacing. There should be a space separating the =
on both sides.
I don’t really understand what you mean and i have tried to update it but still the same problem
I don’t see where the = comes from
```This is what i have
case {'x': x, 'y': y, 'concavity': concavity, 'min_max': min_max}:
details_list = [f'concavity: {concavity}', f'{min_max} = ({x:.3f}, {y:.3f})']
for detail in details_list:
output_string += f'{detail}\n'
type or paste code here
````Preformatted text`
I got it done! Thank you!
1 Like
Please start a new thread if you have a question
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.
The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Thank you.