This is my arithmetic arranger results

def arithmetic_arranger(problems):

x = 0

while x <= len(problems):

    index = problems[x].split()

    for i in index:

        print(i)

    print("----------")

    print(eval(problems[x]))

    x += 1

You got any questions?
Because this thing is in no way solving the task.