i get the following error message and can't understand why:
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!
am trying to loop from last character in text to the 1st and add them to variable s which is a string.
def reverse(text): s = '' for i in range(len(text),1,-1): s = s + text[i] return s