Calling functions within other functions?
<p>I'm really stuck with this, I need to call a function within another function changing the argument while inside but it keeps me saying 'float' object is not callable.</p>

<p>for example:</p>

<pre><code>def functioncall(f,epsilon):
   guess = 1.0
   for i in range(100):
      if f(guess) - guess &lt; epsilon:
        return guess
      else:
        guess = f(guess)
</code></pre>

<p>gives me </p>

<pre><code>File "C:/Users/Apoo/Dropbox/6.00x/midTermQuiz1/problem8.py", line 16, in functioncall
    if f(guess) - guess &lt; epsilon:
TypeError: 'float' object is not callable
</code></pre>

<p>I understood that doing so I'm calling the value of the function f, which is a float in my case, but how can I change that?</p>
