Reverse 7/15 (Practice Makes Perfect)


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

def reverse(text):
    result = []
    for i in range(len(text), 0):
    return result

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.


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