title: Summing a list of floats:TypeError: 'int' object is not callable
body: <p>so the problem is that I keep getting this error message:</p>
  
  <p>TypeError: 'int' object is not callable</p>
  
  <pre><code>range_list = range(1, 97)
  
  
  for p in range_list:
  
      p_numerator = 4*((-1)**(p+1))
      p_denominator = 2*p - 1
  
      function_ofK = float(p_numerator)/float(p_denominator)
  
  
      total = sum(function_ofK)
      print(total)
  </code></pre>
  
  <p>Here is the problem I need to solve: </p>
  
  <p><a href="https://i.stack.imgur.com/r3yPA.png" rel="nofollow noreferrer">Problem:</a></p>