You are viewing a single comment's thread. Return to all comments →
import statistics as st def stdDev(arr): m = st.mean(arr) s = [ (i-m)**2 for i in arr ] return print(f"{(sum(s)/len(arr))**0.5:.1f}") `
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Standard Deviation
You are viewing a single comment's thread. Return to all comments →
import statistics as st def stdDev(arr): m = st.mean(arr) s = [ (i-m)**2 for i in arr ] return print(f"{(sum(s)/len(arr))**0.5:.1f}") `