7. Reverse - Function fails on reverse function


#1

could someone tell me what is wrong in my code ?


def reverse(text):
    leng = len(text) - 1
    while leng >= 0:
        print text[leng],
        leng = leng - 1
   

reverse("Python!")


#2

SOLVED !


#3

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