Reverse, code is correct but it tells me that is is wron :(


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

when i run it in the complier it prints clearly the reversed, but i get error message from page

def reverse(text):
    for n in range(len(text)-1,-1,-1):
    print "".join(a)


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


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.