From ea969dccd8a66c09bf5c984cd4538bcae97cf87e Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Tue, 27 Jan 2015 11:45:34 +0100 Subject: [PATCH] =?UTF-8?q?TP2=20D=C3=A9but=20Phrases=20anagrammes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- S2/TP2/tp2.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/S2/TP2/tp2.py b/S2/TP2/tp2.py index 269f2fc..48c06b8 100644 --- a/S2/TP2/tp2.py +++ b/S2/TP2/tp2.py @@ -246,3 +246,20 @@ partie('Phrases d\'anagrammes') # Geoffrey question(1) +def annagrammes_liste(liste): + res = [] + premierAnagrammes = anagrammes(liste[0]): + if len(liste) > 1: # Si il y a des anagrammes après + for i in premierAnagrammes: + + +def annagrammes_phrase(phrase): + # TODO Docstring + phraseAnagrammes = [] + mots = phrase.split() + motsAnagrammes = {m: annagrammes(m) for m in set(mots)} + for m in range(len(mots)): + + + +