Well, as the title say I'm trying to end the course I did long time ago, and I tried a few days before posting. I think my code makes logic, but for some reason I can't even check my steps with "print". So I'm posing the code asking why or where it is wrong, thanks friends.
def reverse(text): word =  rword =  count = 0 for x in text: word.append(x) count = len(word) for z in word: rword.append(word.index(count)) count -= 1 return rword
I tried print word and print count in the 1st for, nothing blinks out, and rword in the 2nd for and the same.
I tried too
for z in word: rword.append(word.index(count)) count -= 1 if count == "0": break
If I was doing at infinite loop but I'm out of ideas. Thanks in advance.