title: TypeError: a float is required in python
body: <pre><code>def calculateProbability(x, mean, stdev):
      exponent = math.exp(-(math.pow(x-mean,2)/(2*math.pow(stdev,2))))
      return (1 / (math.sqrt(2*math.pi) * stdev)) * exponent
  
  
  exponent = math.exp(-(math.pow(x-mean,2)/(2*math.pow(stdev,2))))
  </code></pre>
  
  <blockquote>
    <p>TypeError: a float is required</p>
  </blockquote>