L = [10,20,30,50] def somme(L) : n=len(L) S=0 for i in range(n) : S+=L[i] return(S) resultat = somme(L) print(resultat)
To embed this program on your website, copy the following code and paste it into your website's HTML: