Reverse - success on my IDE but didn't pass


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 = "".join(result)
    print result


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


Oops! Got it,thank you!