Created
November 17, 2018 19:05
-
-
Save quentinmeyrignac/0ad2354c24a2f2cb7469c8c26b19d7ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import statistics | |
notes = [] | |
running = True | |
while running: | |
mn = 0 | |
note = int(input("Rentrez les notes. Pour terminer écriver [50]: ")) | |
mn =note | |
notes.append(note) | |
print(notes) | |
if mn == 50 : | |
notes.pop("50") | |
running = False | |
mean = statistics.mean(notes) | |
print("La moyenne de l'élève est de : ", mean) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment