Hello guys!

I’m having troubles to complete the challenge of Arithmetic Arranger.

When I test my code in “main.py” I get a lot of mistakes that are not when I parse the values used in “test_module.py”.

```
def arithmetic_arranger(problems,condition=False):
import re
# SEPARO TEXTO POR ESPACIO Y VUELVO A GUARDAR
count = -1
for i in problems:
count = count + 1
problems[count] = re.split("\\s+", problems[count])
count = -1
arranged_problems = list()
l = list()
# SEPARO NUMERO SUPERIOR, INFERIOR Y TOTAL, ADEMAS PRUEBO LONGITUDES Y SI TIENEN SIGNOS QUE NO FUNCIONAN
if len(problems)>4:
print("Error: Too many problems.")
exit()
for i in problems:
count = count + 1
l = []
for j in i:
if (len(j) > 4):
print("Error: Numbers cannot be more than four digits.")
exit()
if j == "+":
pass
elif j == "-":
pass
elif j =="/":
print("Error: Operator must be '+' or '-'.")
exit()
elif j =="*":
print("Error: Operator must be '+' or '-'.")
exit()
if "+" in i:
try:
l.append(int(problems[count][0]))
l.append(int(problems[count][2]))
l.append(int(problems[count][0]) + int(problems[count][2]))
arranged_problems.append(l)
except:
print("Error: Numbers must only contain digits.")
exit()
elif "-" in i:
try:
l.append(int(problems[count][0]))
l.append((-1) * int(problems[count][2]))
l.append(int(problems[count][0]) - int(problems[count][2]))
arranged_problems.append(l)
except:
print("Error: Numbers must only contain digits.")
exit()
l2 = list()
lf = list()
for row in zip(*arranged_problems):
list(row)
for j in row:
lf.append(str(j))
last = list()
for i in range(len(problems)):
lista = list()
lista.append(lf[int(i)])
lista.append(lf[int(i + len(problems))])
lista.append(int(len(problems)) * "-")
lista.append(lf[int(i + 2 * len(problems))])
last.append(lista)
if condition is True:
for row in zip(*last):
print('{:>5}{:>10}{:>8}{:>9}'.format(*row))
return arranged_problems
```

Could you please check it?

Thanks you!