0
Stats - need help!
Calculation of variance (lesson 3.1), I keep on getting errors and I need to learn to understand the error messages so that I can be able to run on my own.
4 Answers
+ 5
Can we see your code?
+ 5
Looks like it's working fine. Did you try this on code playground?
0
Thanks....one moment
0
mean = sum(vac_nums) / len(vac_nums)
diff = [(x-mean)**2 for x in vac_nums]
print(sum(diff) / len(diff))