Project Assignment - Arithmetic Formatter

Look here:

E   AssertionError: Expected solutions to be correctly displayed in output when calling "arithmetic_arranger()" with five arithmetic problems and a second argument of `True`.
E   assert '   32       ...     1028    ' == '   32       ... 172     1028'
E     -    32         1      45      123      988
E     +    32         1      45      123      988    
E     ?                                          ++++
E     - - 698    - 3801    + 43    +  49    +  40
E     + - 698    - 3801    + 43    +  49    +  40    
E     ?                                          ++++
E     - -----    ------    ----    -----    -----...
E     
E     ...Full output truncated (6 lines hidden), use '-vv' to show

specifically:

-    32         1      45      123      988
+    32         1      45      123      988    
?                                          ++++
- - 698    - 3801    + 43    +  49    +  40
+ - 698    - 3801    + 43    +  49    +  40    
?                                          ++++
2 Likes

Jeremy, thank you for your prompt feedback . I was able to complete that assignment. I did refactor the codes by avoiding repetitive lines of codes. Appreciate your help:).

I couldn’t continue to message you yesterday because there was a limit on the number of messages I could fwd and had to wait for 20 hrs.

I’m glad you got it working. Good work!

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