I have two functions:
library function which I cannot change say
lib_func( func, param1)
i.e.lib_functakes a functionfuncand some other parameterparam1as arguments.user defined function
user_func.
For example:
x = 0
y = 0
def user_func():
global x
global y
return sqrt(x*y)
Now the problem is I want to pass x to user_func as argument not as globals while passing user_func to lib_func.