Skip to content
Snippets Groups Projects
Commit dd7866b1 authored by Angy Wallot's avatar Angy Wallot
Browse files

tp.4

parent 601e3af8
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,25 @@ def est_liste_d_etudiants(x) -> bool:
return res
NBRE_ETUDIANTS = len(L_ETUDIANTS)
NIP ="42312037"
def s(n):
"""à_remplacer_par_ce_que_fait_la_fonction
Précondition :
Exemple(s) :
$$$ s(49423558)
'Marcel Rocher'
$$$ s(49452026)
'Laetitia Sanchez'
$$$ s(NIP)
'non'
"""
for el in L_ETUDIANTS:
if el.nip == str(n):
return el.prenom + " " +el.nom
return "non"
if (__name__ == "__main__"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment