TP2 Début Phrases anagrammes
This commit is contained in:
parent
a761e962c0
commit
ea969dccd8
|
@ -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)):
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue