Skip to content
Snippets Groups Projects
Commit 97514996 authored by Dahmane Lynda's avatar Dahmane Lynda
Browse files

etudiants

parent f0c29bf5
Branches
No related tags found
No related merge requests found
......@@ -167,10 +167,10 @@ def ensemble_des_formations(liste: list[Etudiant]) -> Set[str]:
$$$ ensemble_des_formations(COURTE_LISTE[0:2])
{'MI', 'MIASHS'}
"""
formations=Set()
res=[]
for etudiant in liste:
formations.add(etudiant.formation)
return formations
res.add(etudiant.formation)
return res
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment