7/15 - reverse [FIXED]

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


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


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