2 tests on arithmetic arranger failing on layout

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

I am still learning how to interpret these tests for python on replit, but I the expected and given seem the same. But looking at other posts I might have an extra newline somewhere, but I can’t see in code where. Can anyone help me how to debug this?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Challenge: Arithmetic Formatter

Link to the challenge:

There are extra spaces at the end of each line.

-     3      3801      45      123    
?                                 ----
+     3      3801      45      123
- + 855    -    2    + 43    +  49    
?                                 ----
+ + 855    -    2    + 43    +  49
- -----    ------    ----    -----    
?                                 ----
+ -----    ------    ----    -----
-    32         1      45      123    
?                                 ----
+    32         1      45      123
- - 698    - 3801    + 43    +  49    
?                                 ----
+ - 698    - 3801    + 43    +  49
- -----    ------    ----    -----    
?                                 ----
+ -----    ------    ----    -----
-  -666     -3800      88      172    
?                                 ----
+  -666     -3800      88      172
1 Like

oh yes of course. How did you make this visible?

It’s kind of automagically formatted like that inside of the formatted block, which starts and ends with three backticks - ```

Ah super, thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.