Reverse 7/15 (Practice Makes Perfect)


#1

What is going wrong, I end up with a empty (result) list.

def reverse(text):
str(text)
    result = []
    for i in range(len(text), 0):
        result.append(text[i])
    return result
reverse("Python!")

In my opinion it for loops from the end of the text to the beginning of the text, and append every character in the result list.


#2

this line is doing nothing remove it

modify this line

to this

for i in range(len(text)-1, -1,-1):

even with that change you are not expected to return a list but a string. Handle that too