def var(L):
    m = moyenne(L)
    s = 0
    effectif_total = 0
    for x in L:
        s = s + ( x[0] - m )**2
        effectif_total = effectif_total + x[1]

    return s / effectif_total
