Merge branch 'master' of githubu:GeoffreyFrogeye/tp-info

This commit is contained in:
jeanloup 2015-01-27 11:46:58 +01:00
commit 43624f1f4a

View file

@ -366,3 +366,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)):