Skip to content

Instantly share code, notes, and snippets.

@quentinmeyrignac
Created November 17, 2018 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quentinmeyrignac/0ad2354c24a2f2cb7469c8c26b19d7ba to your computer and use it in GitHub Desktop.
Save quentinmeyrignac/0ad2354c24a2f2cb7469c8c26b19d7ba to your computer and use it in GitHub Desktop.
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