So , with help of 3 codes from internet i made this one , it works perfect and it let me pass further but i don't fully understand third line of the code
Why if i write him in such a way :
for i in range(len(text)-1):
It will loop in such a way that it will give me all characters except last one, in my case the "n"
The actual code
def reverse(text): output =  for i in range(len(text)-1, -1, -1): output.append(text[i]) rev = str(output) g = '' for f in output: g = g + f return g reverse("abcdefghmn")