I tried to write a program about standard deviation without importing statistics. And then I compered it to the ‘real’ standard deviation, but it isn’t corresponding.
this is my coding
import math as sqrt
def media:
m=sum(x)//len(x)
def st_dev:
d=sqrt((sum(len(x)-media(x))**2)/len(x))
return d
New contributor