Pix python

Solved

Hello,

I can't find the secret word of this python code, can you help me please?

words ='FORGES COFFRET CLAPET NOIRCIR FLORES ASTRILD CREPES POULPES HANSES POIGNET'

a = 0

b = len(words)

titi=''

for i in range(0, int(len(words)/2)):

    if (words[i]==' '):

        titi = titi + words[abs(a-b)]

    a = a + 2


4 answers

  1. Contributor

    Hello,

    maybe adding this at the end of the code?

    print(titi)
    1. Thank you very much, you're amazing. It worked.

      Have a great day, goodbye.

      1. Hello,

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

        1. 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...