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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- # 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)
|