def moyenne(notes): somme = 0 for cpt in range(len(notes)): .... m = somme/len(notes) return m