diff --git a/TP6/associations/recherches.py b/TP6/associations/recherches.py index 6a34429486b6892b4476f7bddf07e7d7f996bd6b..e90e775904f510b66ce4e2342b134ac6e6106742 100755 --- a/TP6/associations/recherches.py +++ b/TP6/associations/recherches.py @@ -52,14 +52,6 @@ def indice_seq(elem: C, liste: list[C], comp: Callable[[C, C], int]) \ elif comparaison==-1: i=len(liste) return(trouve,i) - -def compare(x, y): - if x == y: - return 0 - elif x < y: - return -1 - else: - return 1 def indice_dicho(elem: C, liste: list[C], comp: Callable[[C, C], int]) \ -> tuple[bool, int]: