-1
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))))
TypeError: a float is requiredTypeerror: ein Schwimmer ist in Python erforderlich
Dies ist kein vollständiger Code, einschließlich vollständiger Fehlerrückverfolgung. – MYGz