renommé : entier.py -> 1/entier.py

renommé :         exo1.py -> 1/exo1.py
	renommé :         exo2.py -> 1/exo2.py
	renommé :         exo3.py -> 1/exo3.py
	renommé :         exo3b.py -> 1/exo3b.py
	renommé :         first.py -> 1/first.py
	renommé :         loop.py -> 1/loop.py
	renommé :         math0.py -> 1/math0.py
	renommé :         string0.py -> 1/string0.py
	nouveau fichier : 2Prog.md
This commit is contained in:
2022-10-13 21:51:40 +02:00
parent 02afd53f1b
commit 84d386a4ae
10 changed files with 0 additions and 0 deletions

19
python/1/exo2.py Normal file
View File

@@ -0,0 +1,19 @@
# Entrer un entier compris entre 0 et 20 (note)
# et afficher la mention associée
# si l'entier n'est pas compris entre 0 et 20 ne rien ecrire
note = int(input("Entrer une note [entre 0 et 20] : "))
if (note >= 10) and (note < 12):
mention = "Passable"
elif (note >=12) and (note < 14):
mention = "Assez Bien"
elif note>=14 and note < 16:
mention = "Bien"
elif note >= 16:
mention = "Très Bien"
if note >=10 and note <= 20:
print ("La note ", note, "correspond à la mention ", mention)
elif note>=0 and note<10:
print ("Echec")