diff --git a/S2/TP2/tp2.py b/S2/TP2/tp2.py index cd769d8..1740d52 100644 --- a/S2/TP2/tp2.py +++ b/S2/TP2/tp2.py @@ -453,7 +453,7 @@ def liste_possibilites(arbre, precede): for i in arbre: if type(arbre[i]) == dict: possibilites = possibilites + \ - arbre_vers_liste(arbre[i], precede + [i]) + liste_possibilites(arbre[i], precede + [i]) elif arbre[i] == None: possibilites = possibilites + [precede + [i]] return possibilites