Pix python
Résolu
Soldat7632
-
Phil_1857 -
Phil_1857 -
Bonjour,
Je n'arrive pas a trouvé le mot secret de ce code python pouvez-vous m'aider svp ?
mots ='FORGES COFFRET CLAPET NOIRCIR FLORES ASTRILD CREPES POULPES HANSES POIGNET'
a = 0
b = len(mots)
titi=''
for i in range(0, int(len(mots)/2)):
if (mots[i]==' '):
titi = titi + mots[abs(a-b)]
a = a + 2
Windows / Chrome 122.0.0.0
4 réponses
-
yg_be Messages postés 23437 Date d'inscription Statut Contributeur Dernière intervention Ambassadeur 1 588
bonjour,
peut-être en ajoutant ceci à la fin du code?
print(titi)
-
-
-
Salut,
"Ca à marché." ... ben non !
Si on ne suit pas l'énoncé jusqu'au bout, ca donne un mot bizarre:
NROLR
Si on applique toutes les consignes, on trouve bien un mot valide ...
