Arithmetic Calculator - Don't know why code is not working

Tell us what’s happening:
I don’t know why it won’t return the value of arranged_solved when the optional argument is set to True.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0.

Challenge: Arithmetic Formatter

Link to the challenge:

I am not much expert in python, but are you sure that’s right syntax for your return statement?

Hello and welcome to the freeCodeCamp community~!


It looks like your code does display the solutions to the problems as intended. The tests are seeing a spacing error. :slight_smile:

Thank you for your message!

Yes, it is right syntax. I initially thought I had a problem with the if and return statements at the end of my functions and did some experimenting trying to fix it, but in reality I wasn’t careful enough reading the error message: it was a spacing problem.

1 Like

You are absolutely right on that. I needed a fresh pair of eyes!

Thank you very much :blush: