When ever I try to return the ‘arranged_problems’ i only get the final value from the arithmetic arranger list but when I use ‘print(arranged_problems)’ all the values are printed but with a ‘none’ in then end. Sorry if it’s a dumb question I am new to programming and what I have learned I can’t seem to find the issue

```
def arithmetic_arranger(problems, solve = False):
if len(problems) > 5:
return ("Error: Too many problems.")
for m in (problems):
x = m.split()
if (x[0].isnumeric()) == False or (x[2].isnumeric()) == False:
return ("Error: Numbers must only contain digits.")
else:
if len(x[0]) >= 5:
return ("Error: Numbers cannot be more than four digits.")
if len(x[2]) >= 5:
return ("Error: Numbers cannot be more than four digits.")
if x[1] == '*' or x[1] == '/':
return ("Error: Operator must be '+' or '-'.")
else:
num1 = str(x[0])
num2 = str(x[2])
ans = ""
if x[1] == '+':
ans = int(x[0]) + int(x[2])
if x[1] == '-':
ans = int(x[0]) - int(x[2])
length = max(len(num1), len(num2)) + 2
top = num1.rjust(length)
bottom = x[1] + num2.rjust(length - 1)
line = ""
fans = str(ans).rjust(length)
for s in range(length):
line += "-"
if solve:
arranged_problems = (top + "\n" + bottom + "\n" + line + "\n" + fans)
else:
arranged_problems = (top + "\n" + bottom + "\n" + line)
return(arranged_problems)
print(arithmetic_arranger(["33 + 690", "3301 - 2", "45 + 3", "123 + 49"]))
```