0% ont trouvé ce document utile (0 vote)
46 vues1 page

TP Python

Transféré par

Amy Fall
Copyright
© © All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats TXT, PDF, TXT ou lisez en ligne sur Scribd
0% ont trouvé ce document utile (0 vote)
46 vues1 page

TP Python

Transféré par

Amy Fall
Copyright
© © All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats TXT, PDF, TXT ou lisez en ligne sur Scribd

lnote = []

note,nbrnote,somnote,moyenne=0,0,0,0
while note>=0 and note<=20:
note= float(input("Entrez votre note:"))
if note>=0 and note<=20:
nbrnote+=1
[Link](note)
print("Nombre des notes saisies:",nbrnote)
print(note)
moyenne= somnote/nbrnote
print ("La moyenne est:",moyenne)
maxi=lnote[0]
for i in range(0,len(lnote)):
if lnote[i]>maxi:
maxi=lnote[i]
print ("La note Maximale est:",maxi)
mini=lnote[0]
for i in range(0,len(lnote)):
if lnote[i]<mini:
mini=lnote[i]
print ("La note Minimale est:",mini)

Vous aimerez peut-être aussi