problems is the name of one of the parameters for arithmetic_arranger.
It will be passed to the function by the testing module.
(it is essentially an array of strings as can be seen in the startup code for this)
so when I am creating this function should I use the numbers in the list to add and subtract? would would I put, like lets say I wanted to say add _ to _, what would those blanks be thats where I am mostly confused.
no I started to understand, but what do i assign problems to? would i put it to a list or what, because i kinda know what to do now but it says problem is not defined
wait I might be undertsanding this wrong, to change the function you would have to switch it in the definition of the function? so i would set problems equal to ([β32 + 698β, β3801 - 2β, β45 + 43β, β123 + 49β] right? So when I call the function I can just use problem as a parameter and if i want to change values change it in the function itself?
you donβt need to assign problems to anything. It is an array that is given to the function and you should just use the array as it is given (unless you need to make a copy of it or something then in that case, you will need to write code to do that).
So just use the parameters that are passed in to solve the problem.
yeah i kinda understand what your saying now I should give this value in the function [β32 + 698β, β3801 - 2β, β45 + 43β, β123 + 49β] (or whatever value I wanted to give later on) and just call the function with the parameters of problem which would already give it the values?
yes that is how parameters work. Functions are defined with the parameters so that we can call them later and give specific arguments to them.
They gave you an example in the code:
This is calling arithmetic_arranger and it is passing in the list