I have a lab where in one part I need to use the array:
A = [3, 3, 20, 8, -2, 1, 3, -7, 2, 1, 3, -5, 13]
and I have to run all the elements of that array in this equation Y = 3x + 2
, the x
will be the elements of the array A
and all the elements need to be used there, but I don't know how to make this. Also, it needs to be in a function with the name Ecuacion, e.g.:
def Ecuacion():`
Edit: Then I need to print the elements I got from the equation.