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.

8th Jan 2022, 4:39 PM
ICT Maboe
4 Answers
+ 5
Can we see your code?
8th Jan 2022, 4:50 PM
Simba
Simba - avatar
+ 5
Looks like it's working fine. Did you try this on code playground?
8th Jan 2022, 5:02 PM
Simba
Simba - avatar
0
Thanks....one moment
8th Jan 2022, 4:51 PM
ICT Maboe
0
mean = sum(vac_nums) / len(vac_nums) diff = [(x-mean)**2 for x in vac_nums] print(sum(diff) / len(diff))
8th Jan 2022, 4:56 PM
ICT Maboe