I want to create a function where I can pass in specified variables into the function and return them out of the function as true.
Something along the lines of :
y = False
z = False
def func(x):
{do stuff}
x = True
return x
func(y)
func(z)
So that I can pass in various different variables that aren't statically set in the function, adjust them to true and return the value out.
But I'm currently struggling with understanding how to do something like this.
Going about it this way its just trying to create a new variable called x and return it as opposed to use the variable in the parameters (x) and override that.