def show_hidden_word(secret_word, old_letters_guessed):
i = 0
new_string = ""
while i < len(secret_word):
    j = 0
    print(1)
    for j in old_letters_guessed:
        if secret_word[i] == old_letters_guessed[j]:
            new_string += secret_word[i]
        print(old_letters_guessed[j])
        j += 1
    print(secret_word[i])
    i += 1
return new_string
Why the comparate between those string don't work?And can someone help to fix it?
 
    