Arithmetic Formatter Help Last Issue 42 lines

I solved all the request but I’m still having an issue.
It talks about to given arguments and I checked others works, everyone has the second condition but I don’t understand why and then how to resolve it

Traceback (most recent call last):
File “/home/runner/boilerplate-arithmetic-formatter-3/”, line 37, in test_solutions
actual = arithmetic_arranger([“32 - 698”, “1 - 3801”, “45 + 43”, “123 + 49”], True)
TypeError: arithmetic_arranger() takes 1 positional argument but 2 were given

Here is my code

Thanks for your time!

The second condition is an optional argument with a default value.
If the second argument is True, you are supposed to solve the calculations in problems and return the results in the arranger - look at the second example in the :wink:

1 Like