StdDev not working

this is the error -

raceback (most recent call last):
File “”, line 5, in
File “”, line 10, in stdDev
AttributeError: type object ‘org.python.modules.math’ has no attribute ‘stdDev’

import math


print stdDev(array)

I’ve also tried with
print math.stdDev(array)

and simply stdDev(array) without importing math

according to this:

stdDev is an expression function, not a scripting function

Are you trying to use the new scripting functions? In that case, you want to use system.math.standardDeviation() docs

The doc you linked to is from the expression language, which is not available in scripts, as bfuson said.

That works, Thank you @KathyApplebaum!!