OCode
1
Tell us what’s happening:
i’m not an expert at this stuff yet, but i can sure tell when my code matches another piece of code. And this does so why isn’t it passing
Your code so far
# User Editable Region
details_list = [f'slope = {slope:^35.3f}', f'y-intercept = {intercept:^24.3f}']
# 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/128.0.0.0 Safari/537.36
Challenge Information:
Learn Interfaces by Building an Equation Solver - Step 65
im59138
2
the output in the terminal is
----Linear Equation-----
2x +3 = 0
-------Solutions--------
x = -1.500
--------Details---------
slope = 2.000
y-intercept = 3.000
you are putting the numbers too far right
OCode
3
this on the the terminal is
details_list = [f'slope = {slope:^27.3f}', f'y-intercept = {intercept:^16.3f}']
--------Details---------
slope = 2.000
y-intercept = 3.000
not accurate as to what i see on terminal but roughly the same
its still not passing
OCode
4
on the terminal it looks like the example
im59138
5
you have to right align, not center align and use a visual trick. you have too many spaces to the right, those count as characters
changing character is more visible:
there should be nothin on the right of the number