arr = []
n =  int(input("Banyaknya element : "))
for i in range(0,n):
    element = int(input("Nilai element ke - "+ str(i+1)+ " : "))
    arr.append(element)


#fungsi menghitung rata-rata(mean)
def mean(l):
  sum = 0
  for ele in l:
    sum = sum + ele
  return sum / n

rataRata = mean(arr)

#tiap element data dikurang rata - rata dan dikuadratkan
res = [(ele - rataRata) ** 2 for ele in arr]

#fungsi menghitung semua elemen list
def sumList(l):
  sum = 0
  for ele in l:
    sum = sum + ele
  return sum

sigma = sumList(res)

stdDeviasi = (sigma / n) ** 0.5
print ("Standar Deviasi :", stdDeviasi)
fc1bcb8738fca537bf15acc937d1fed449db01cc
<mask token>


def sumList(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum


<mask token>

<mask token>


def mean(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum / n


<mask token>


def sumList(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum


<mask token>

<mask token>
for i in range(0, n):
    element = int(input('Nilai element ke - ' + str(i + 1) + ' : '))
    arr.append(element)


def mean(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum / n


<mask token>


def sumList(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum


<mask token>
print('Standar Deviasi :', stdDeviasi)

arr = []
n = int(input('Banyaknya element : '))
for i in range(0, n):
    element = int(input('Nilai element ke - ' + str(i + 1) + ' : '))
    arr.append(element)


def mean(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum / n


rataRata = mean(arr)
res = [((ele - rataRata) ** 2) for ele in arr]


def sumList(l):
    sum = 0
    for ele in l:
        sum = sum + ele
    return sum


sigma = sumList(res)
stdDeviasi = (sigma / n) ** 0.5
print('Standar Deviasi :', stdDeviasi)

arr = []
n =  int(input("Banyaknya element : "))
for i in range(0,n):
    element = int(input("Nilai element ke - "+ str(i+1)+ " : "))
    arr.append(element)


#fungsi menghitung rata-rata(mean)
def mean(l):
  sum = 0
  for ele in l:
    sum = sum + ele
  return sum / n

rataRata = mean(arr)

#tiap element data dikurang rata - rata dan dikuadratkan
res = [(ele - rataRata) ** 2 for ele in arr]

#fungsi menghitung semua elemen list
def sumList(l):
  sum = 0
  for ele in l:
    sum = sum + ele
  return sum

sigma = sumList(res)

stdDeviasi = (sigma / n) ** 0.5
print ("Standar Deviasi :", stdDeviasi)