From 97514996b104943a728ec13d2ddf72e138da15e6 Mon Sep 17 00:00:00 2001
From: Dahmane Lynda <lynda.dahmane.etu@115p14.fil.univ-lille.fr>
Date: Tue, 2 Apr 2024 11:15:03 +0200
Subject: [PATCH] etudiants

---
 Tp4/etudiants/etudiant.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 mode change 100755 => 100644 Tp4/etudiants/etudiant.py

diff --git a/Tp4/etudiants/etudiant.py b/Tp4/etudiants/etudiant.py
old mode 100755
new mode 100644
index cc793f3..2fc9043
--- a/Tp4/etudiants/etudiant.py
+++ b/Tp4/etudiants/etudiant.py
@@ -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
-- 
GitLab