Pix python

Solved
Soldat7632 -  
 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 answers

yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   Ambassadeur 1 587
 

Hello,

maybe adding this at the end of the code?

print(titi)
1
Soldat7632
 

Thank you very much, you're amazing. It worked.

Have a great day, goodbye.

0
Diablo76 Posted messages 338 Registration date   Status Member Last intervention   139
 

Hello,

It's not complete, you are missing something to add by reading the statement:

0
Phil_1857
 

Hello,

"It worked." ... well no!

If we don't follow the statement all the way through, it gives a weird word:

NROLR

If we apply all the instructions, we indeed find a valid word...

0