Reverse


#1



this code return !nohtyP, but i can't find how return "!nohtyP" 


def reverse(text):
    s=""
    n=1
    while n<=len(text):
        s=s+text[len(text)-n]
        n+=1
    print s
reverse("Python!")


Oops, try again. Your function fails on reverse("Python!"). It returns "None" when it should return "!nohtyP".


#2

you print the reversed string, you should return the reversed string


#3

oh my god..... thank you


#4