7/15 - reverse [FIXED]


#1
def reverse(text):
    length = len(text) - 1
    reverse = ""
    while length >= 0:
        reverse = reverse + text[length]
        length = length - 1
    return reverse

It only returns "P"
I would really appreciate if someone can help me
Thanks in advance


#2

Do you still have issue with this code, cause I run it and it worked like a charm


#3

Nope, i fixed it immediately after posting it. But i couldnt find the delete post button so i also fixed it on the post