Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
# Import statistics Library import statistics # Calculate the variance of an entire population print(statistics.pvariance([1, 3, 5, 7, 9, 11])) print(statistics.pvariance([2, 2.5, 1.25, 3.1, 1.75, 2.8])) print(statistics.pvariance([-11, 5.5, -3.4, 7.1])) print(statistics.pvariance([1, 30, 50, 100]))
11.666666666666666
0.3997222222222222
53.1025
1302.6875