Scientific Computing with Python Projects - Arithmetic Formatter

Tell us what’s happening:

So I have done all of the practice projects in this course but I have seemed to have retained not enough knowledge to complete this project. Can someone please just help me, just enough so that I understand the code again and can go on completing the project? I’d really appreciate it!!!

Your code so far

def arithmetic_arranger(problems, show_answers=False):
    if len(problems) > 5:
        return 'Error: Too many problems.'
    if symbols != ['+', ' -']:
        return "Error: Operator must be '+' or '-'."
        
    return problems

print(f'\n{arithmetic_arranger(["32 + 698", "3801 - 2", "45 + 43", "123 + 49"], True)}')

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Scientific Computing with Python Projects - Arithmetic Formatter

Do you have a specific question about how to do something, or an error you are encountering?