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’

code:
import math

array=[1.0,2.4,5.6]

print stdDev(array)

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

and simply stdDev(array) without importing math

according to this: https://docs.inductiveautomation.com/display/DOC79/stdDev

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!!