I think I'm overcomplicating the Arithmetic Arranger

Tell us what’s happening:
I’ve been trying and failing to get everything lined up vertically for this function. I finally got it working with the command line and a text editor, but it won’t work in replit. I know my code probably looks terrible, but this is like the 3rd time I’ve re-written it. What am I doing wrong here?


Hi so to things:

-   3801      123
+   3801      123    
?                ++++

Your outputs have trailing spaces at the end.

And your functions is not designed to take in an optional argument to display the solution.

1 Like

Ah, I see. I was having a hard time reading replits error messages, but it all makes sense now. Thanks for looking at it.