print ("inserire il numero dei voti")
numero = int (input())
cont = 0
somma = 0
while cont<numero:
    print("inserire il "+ str(cont+1)+"° voto")
    voto = int (input())
    somma = somma+voto 
    cont = cont+1
media = somma/numero 
print("la media é=",media)

Embed on website

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