Hi,

In arithmetic formatter I am able to print answers in a correct format I guess, but I wonder how can I align output horizontally as it shoud be according to requirements. I know that I need to use arranged problems, but I confused with how to use it.

this is my current progress

my code

```
def arithmetic_arranger(problems, bool):
for i in range(len(problems)):
space1 = " "
space2 = " "
dashes = "-"
answer = ""
spacesBeforeAnswer = ""
digit1 = problems[i].split(" ")[0]
digit2 = problems[i].split(" ")[2]
sign = problems[i].split(" ")[1]
if len(digit1) > len(digit2):
space1 = " " * (len(digit1) - len(digit2)) + " "
dashes = dashes * len(digit1) + "--"
if sign == "+":
answer = int(digit1) + int(digit2)
elif sign == "-":
answer = int(digit1) - int(digit2)
spacesBeforeAnswer = (len(dashes) - len(str(answer))) * " "
if len(digit1) < len(digit2):
space2 = " " * (len(digit2) - len(digit1)) + " "
dashes = dashes * len(digit2) + "--"
if sign == "+":
answer = int(digit1) + int(digit2)
elif sign == "-":
answer = int(digit1) - int(digit2)
spacesBeforeAnswer = (len(dashes) - len(str(answer))) * " "
#print(len(digit2), len(digit1))
if len(digit1) == len(digit2):
dashes = dashes * len(digit1) + "--"
if sign == "+":
answer = int(digit1) + int(digit2)
elif sign == "-":
answer = int(digit1) - int(digit2)
spacesBeforeAnswer = (len(dashes) - len(str(answer))) * " "
print(' ' + space2 + digit1 + '\n' + sign + space1 + digit2 + '\n' + dashes + '\n' + spacesBeforeAnswer + str(answer) )
return arranged_problems
```