Obtener varianza de la lista Python

def get_variance(arr):
    mean = sum(arr) / len(arr)
    summ = 0
    for x in arr:
        summ+=(x-mean)**2
    return summ/len(arr)
slohobo