Arithmetic formatter - Struggling to pass the "Too many problems" test

Hi guys,

I’ve been working on this project since some times. It looks like my code works well and passes 9 tests over 10. I still have a problem with the 5th one and I keep receiving this message:

arithmetic_arranger([“44 + 815”, “909 - 2”, “45 + 43”, “123 + 49”, “888 + 40”, “653 + 87”])should return’Error: Too many problems.’

Is it not a problem of consistency between the instructions and the expected result ? Since the numbers of the input are all maximum 4 digits number, they are integers and the operation signs are correct (+/-). Maybe I’m blind and I apologize in advance if I don’t see anything obvious but I really struggle to understand where must be the errors in the input and even less to see more than 5 (number of errors allowed).

What does your function return when you pass more then five arguments to it?
Here we are talking about the number of operations, not the numbers of digits of each number.

Well okay indeed I didnt fully understand the rules and made the confusion between “numbers of errors” and “numbers of problems/operation”. I quickly and easily corrected it and now everything works. Thanks for your answer and sorry for the inconvenience, definitely it was a dumb question.

No problem at all :+1: I’m glad you solved it

1 Like