You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Deze repo is gearchiveerd. U kunt bestanden bekijken en het klonen, maar niet pushen of problemen/pull-requests openen.
|
- # Exercice: remplacer n, s et x avec de meilleurs noms
- def calcule_moyenne(scores):
- n = len(scores)
- s = 0
- for x in scores:
- s = s + x
- return s / n
-
-
- scores = [2, 3, 5, 4]
- moyenne = calcule_moyenne(scores)
- print(moyenne)
|