Do we need to generate the answer for the equation in a list?

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

Your code so far

Do we need to generate the answer for the equation in a list??
For example,
arithmetic_arranger([“32 + 8”, “1 - 3801”, “9999 + 9999”, “523 - 49”], True)
will be [40,-3800, 19998,474] ??

Your browser information:

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

Challenge: Arithmetic Formatter

Link to the challenge:

Function is expected to return single string, with problems arranged as in the examples.

So should I return arithmetic_arranger([“32 + 8”, “1 - 3801”, “9999 + 9999”, “523 - 49”], True) for “40 -3800 19998 474” with 4 indented white space per number

You need to return the arranged operations with the results included
If you use 4 indented white space per number the numbers will not be below the operations

You need to return this

  32         1      9999      523
+  8    - 3801    + 9999    -  49
----    ------    ------    -----
  40     -3800     19998      474
1 Like

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