I am stuck at "reverse" excersise and have no idea why my code fails.
But the most bizzare part of the problem is that error message says that my code must return "!nohtyP", but it returns "!nohtyP". Genius.
Can someone explain where exactly have I messed it up?
def reverse(text): rev = ' ' i = 0 for letters in text: rev += text[(len(text)- 1 - i)] i += 1 return rev