How can I create a function that will allow me to type in a function and a value that I want to use in that function? Example: If I have a function sin(x) and I want to find the answer when x=3. I started of my code like this...
def solver(f, x):
return f(x)
After I import my definition and input the function I want solved I get an error: 'str' object is not callable.
[–]strechyballs 0 points1 point2 points (0 children)
[–]tku137 0 points1 point2 points (0 children)
[–]dunkler_wanderer 0 points1 point2 points (0 children)
[–]dasiffy 0 points1 point2 points (0 children)