Merge branch 'master' of githubu:GeoffreyFrogeye/tp-info
This commit is contained in:
commit
97ebe81584
|
@ -379,14 +379,20 @@ def cle(mot):
|
|||
|
||||
assert(type(mot) == str)
|
||||
|
||||
cpy = list(bas_casse_sans_accent(mot)).sort()
|
||||
cpy = sort(bas_casse_sans_accent(mot))
|
||||
|
||||
return str(cpy)
|
||||
return cpy
|
||||
|
||||
|
||||
question(3)
|
||||
|
||||
ANAGRAMMES = {cle(i): anagrammes(i) for i in LEXIQUE}
|
||||
ANAGRAMMES = dict()
|
||||
l=list()
|
||||
|
||||
for i in LEXIQUE:
|
||||
k = cle(i)
|
||||
|
||||
|
||||
|
||||
print(len(ANAGRAMMES))
|
||||
|
||||
|
@ -417,8 +423,11 @@ section('Comparaison des deux méthodes')
|
|||
question(1)
|
||||
|
||||
for i in range(30):
|
||||
|
||||
print(len(anagrammes(i)))
|
||||
|
||||
for i in range(30):
|
||||
print(len(anagrammes2(i)))
|
||||
|
||||
|
||||
partie('Phrases d\'anagrammes') # Geoffrey
|
||||
|
||||
|
|
Reference in a new issue