2022-2023/1NSI/Evaluations/DS_2023-03-31/annexes/QCM_moyenne.py

8 lines
156 B
Python
Raw Normal View History

2023-03-30 16:42:50 +00:00
liste = [17, 12, 5, 18, 2, 7, 9, 15, 14, 20]
somme = 0
i = 0
while i < len(liste):
somme = somme + liste[i]
i = i + 1
resultat = somme / len(liste)