Standard Deviation Function In Python Syntax Error