diff --git a/tp1.py b/tp1.py
index 9a0cb1eedbd3a0ec7a84d825044b8f1128143cf7..db2df373790317974382612b74ed2cc7de9a6b14 100644
--- a/tp1.py
+++ b/tp1.py
@@ -91,8 +91,39 @@ def sont_anagrammes2(s1:str,s2:str)->bool:
False
"""
+ dict1={}
+ dict2={}
+ for elt in s1:
+ if elt in dict1:
+ dict1[elt]=dict1[elt]+1
+ else:
+ dict1[elt]=1
+
+ for elm in s2:
+ if elm in dict2:
+ dict2[elm]=dict2[elm]+1
+ else:
+ dict2[elm]=1
+ return dict1==dict2
-
+def sont_anagrammes3(s1:str,s2:str)->bool:
+ """ à_remplacer_par_ce_que_fait_la_fonction
+
+ Précondition :
+ Exemple(s) :
+ $$$ sont_anagrammes3('orange', 'organe')
+ True
+ $$$ sont_anagrammes3('orange','Organe')
+ True
+ $$$ sont_anagrammes3('hezf','ehzu')
+ False
+ """
+ for elt in set(s1):
+ if s1.count(elt)==s2.count(elt):
+ return True
+ return False
+
+