Vous êtes sur la page 1sur 2

Aya KETTANI 28/10/2023

article Numéro Date Nais Année Age Moyenne Decision Range


candidate Nais
100 Candidat 1 10/10/199 1990 33 10.25 Admis : Rang 5
0 Passable
200 Candidat 2 23/09/198 1989 34 13.85 Admis : Rang 4
9 Bien
300 Candidat 3 15/06/199 1991 32 8.00 Refuse Rang 9
1
400 Candidat 4 04/07/199 1990 33 7.34 Refuse Rang
0 10
500 Candidat 5 18/08/199 1992 31 15.52 Admis : Rang 1
2 Très Bien
600 Candidat 6 24/11/198 1988 35 14.29 Admis : Rang 3
8 Bien
700 Candidat 7 22/10/198 1989 34 15.25 Admis : Rang 2
9 Très Bien
800 Candidat 8 20/05/199 1991 32 8.50 Refusé Rang 8
1
900 Candidat 9 06/01/199 1990 33 9.00 Refusé Rang 7
0
1000 Candidat 07/01/198 1988 35 10.00 Admis : Rang 6
10 8 Passable

Candidat 500 La Moyenne maximal 15.52


5 La Moyenne du concours 10.5
la date du jour 10/10/202 Le nombre de refuses 4
3 Le taux de réussite 0.6

Pour recherché et afficher en majuscules le numéro du candidat correspondant à une /5


: matricule donnée vous pouvez utiliser un programme en function Python
matricules = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000]
candidats = ["candidat 1", "candidat 2", "candidat 3", "candidat 4", "candidat 5", "candidat
6", "candidat 7", "candidat 8", "candidat 9", "candidat 10"]
matricule_recherche = 500
:if matricule_recherche in matricules
index = matricules.index(matricule_recherche)
candidat_correspondant = candidates[index]
print("Le candidat correspondant au matricule {} est {}.".format(matricule_recherche,
candidat_correspondant.upper()))
:else
print("Matricule non trouvé.")

Vous aimerez peut-être aussi