python/moyenne.py
2022-12-28 09:00:47 +01:00

9 lines
149 B
Python

nbNotes = int(input())
sommeNotes = 0
for loop in range(nbNotes):
note = int(input())
sommeNotes = sommeNotes + note
print(sommeNotes / nbNotes)