How can I pass the expression as argument into the function and then execute it in Python?
def f(variable, function):
# here calculate the function (unknown part)
f(3, 2 * variable)
The result should be 6. (f(x) = 2 * x; x = 3)
How can I do that?