Question: this is python problem. I need to make standard deviation by using math library. math library is only thing I can be used in this

this is python problem. I need to make standard deviation by usingthis is python problem. I need to make standard deviation by using math library.

math library is only thing I can be used in this problem and this is what I done so far,

I have errors, and I don't know how to fix it.

can someone help me?

Hint: the sqrt() function from the math library might be helpful for this. If you use a seperate file you need to load the library as we did in Part 1 to read in the data. The import looks like this: [41]: your code goes here import math temperature vector = a mean = float (sum(a)) / len (a) v-sum(pow(x - mean),2) for x in (a len (a) standard_deviation-math.sqrt(v) In File "", line 5 v sum(pow(x mean ) ,2) for x in (a) / len (a) = - SyntaxError: invalid syntax

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!