Scientific Computing with Python Projects - Arithmetic Formatter

Tell us what’s happening:
Describe your issue in detail here.

Hi everybody !

I m working on the arithmetic arranger problem. I think I have reached the end but i keep getting the same message error for the part where you have to take care about limits as for the number of problem that you can handle with your program.

I don’t understand why because it prints the good Errormessage.

Here a screenshot of my error message :

I m using the quit() function to end the program if there is an error message. It may come from there but I don’t understand why…

Thank you for your help !

Your code so far

Your browser information:

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

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

My code so far

make sure you return the error messages as a string (do not quit).
The string will be checked by the testing program.