X=[14,18,20,13,15]
def fréquence(X):
    n=len(X) 
    L=[]

    for i in range(n):
        x=X[i]/sum(X)
        L.append(x)
    return L
print('le nombre de valeur est n =',len(X))
print ('fréquence= ', fréquence(X))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: