**Tell us what’s happening:**

Describe your issue in detail here.

While running the program or code that I created for this assignment, I am getting 6 assertion errors as per the test_module.py.

The errors with the following ids are displayed.

- test_two_problems_arrangement1
- test_two_problems_arrangement2
- test_four_problems_arrangement
- test_five_problems_arrangement
- test_two_problems_with_solutions
- test_five_problems_with_solutions

I really can’t make out what exactly these errors are pointing out. It could be the formatting but without knowing specifically what, I don’t know where to make the changes. As far as the spacing requirements (btw the values and problems) are concerned, I believe it has been taken care of. Please advise!

**Your code so far**

```
def arithmetic_arranger(myinput, showresult=False) :
myOperand1 = []
myOperand2 = []
myOpr = []
count = 0
for inputs in myinput:
myList = inputs.split(" ")
count += 1
try:
if isinstance(int(myList[0]), int) & isinstance(int(myList[2]), int):
myOperand1.append(myList[0])
myOperand2.append(myList[2])
except ValueError:
return "Error: Numbers must only contain digits."
if myList[1] == "+" or myList[1] == "-":
myOpr.append((myList[1]))
else:
return "Error: Operator must be '+' or '-'."
if count > 5:
return "Error: Too many problems."
if len(myList[0]) > 4 or len(myList[2]) > 4:
return "Error: Numbers cannot be more than four digits."
# print all the first operands with the required spacing
for i in range(len(myOperand1)):
if len(myOperand1[i]) <= len(myOperand2[i]):
print(myOperand1[i].rjust(len(myOperand2[i]) + 2) + " ",end=" ")
else:
print(myOperand1[i].rjust(len(myOperand1[i]) + 2) + " ", end=" ")
print()
# print the operators and the second operands with the required spacing
for i in range(len(myOperand2)):
if len(myOperand1[i]) <= len(myOperand2[i]):
print(myOpr[i] + " " + myOperand2[i].rjust(len(myOperand2[i])) + " ",end=" ")
else:
print(myOpr[i] + " " + myOperand2[i].rjust(len(myOperand1[i])) + " ", end=" ")
print()
# print the dash ----
for i in range(len(myOperand2)):
if len(myOperand1[i]) <= len(myOperand2[i]):
num = len(myOperand2[i]) + 2
print(num * "-" + " ",end=" ")
else:
num = len(myOperand1[i]) + 2
print(num * "-" + " ", end=" ")
print()
# print the sum or difference btw the operands as per the operator
if showresult:
for i in range(len(myOperand2)):
if myOpr[i] == "+":
sum = int(myOperand1[i]) + int(myOperand2[i])
if len(myOperand1[i]) <= len(myOperand2[i]):
print(str(sum).rjust(len(myOperand2[i]) + 2) + " ", end=" ")
else:
print(str(sum).rjust(len(myOperand1[i]) + 2) + " ", end=" ")
else:
sum = int(myOperand1[i]) - int(myOperand2[i])
if len(myOperand1[i]) <= len(myOperand2[i]):
print(str(sum).rjust(len(myOperand2[i]) + 2) + " ", end=" ")
else:
print(str(sum).rjust(len(myOperand1[i]) + 2) + " ", end=" ")
return "Completed"
```

**Your browser information:**

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

**Challenge:** Arithmetic Formatter

**Link to the challenge:**