l = [2,3,7,1,89,7,10000] somma = 0.0 for x in l: somma = somma + x print somma/len(l)