Reverse - success on my IDE but didn't pass


#1

I actually tried the code on my IDE and it works pretty well; however, the system does not let me pass. Could anyone tell me why?

def reverse(text):
    result = []
    for i in range(len(text)):
        result.append(text[len(text)-(i+1)])
    result = "".join(result)
    print result

#2

the exercise expects your function to return the reversed string, your function only prints the reversed string


#3

Oops! Got it,thank you!


#4