the error message i got is
Oops, try again. Your function fails on reverse("Python!"). It returns "" when it should return "!nohtyP".
Well i thought that my code should be able to take the text input as a string, but somehow it didn't work that way
Would appreciate some help here
def reverse(text): newstr = "" for i in range (len(text),0): newstr = newstr + text[i] i-=1 return newstr print reverse("Python")