Traceback (most recent call last):
File "python", line 10, in
File "python", line 5, in reverse
IndexError: string index out of range
Oops, try again. Your code looks a bit off--it threw a "string index out of range" error. Check the Hint if you need help!
I dont have idea how to make it works... Any hints on it? Thank you.
def reverse(text): rev_text =  i = len(text) while i >= 0: rev_text.append(text[i]) print text[i] i = i - 1 return rev_text print reverse("APPLE")