Scientific Computing with Python Projects - Arithmetic Formatter

Hello! I’ve written a solution to the Arithmetic Formatter project, however, it’s failing almost every test. It keeps telling me that the solution isn’t formatted in the correct way, but I can’t see where I’m going wrong. If someone could point me in the right direction, I’d be really grateful - thank you!

solution: boilerplate-arithmetic-formatter - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

It appears you may have an extra 4 spaces at the end of each line that is not expected in the returned string.

Further down the code, I’ve removed these 4 spaces using array notation, so I don’t think that’s the issue!

You should not have changed main.py at all. All your code should go in arithmetic_arranger.py.

If you revert back main.py to what the boilerplate originally had and click Run, you are failing all but one test.

I would focus on the first tests you are failing first before worrying about the ones where you need to properly format the return value.

You are failing the first one, because of the following line:

arith_list = problems[0]

What exactly are you hoping to accomplish with this line?