Why does this not work?


#1




When I print my list of characters, I get Python perfectly reversed in console. Then when I use that list to create a string it does not work anymore.


A reversed string.


Replace this line with your code. 
# This prints the word in backwards to console.
def reverse(s):
    res = ''
    for c in range(len(s)-1, -1, -1):
       # res = res + s[c]
        print s[c]
        #return res

        

reverse('Python')


Replace this line with your code. 
#WHY DOES THIS NOT WORK?!?!
def reverse(s):
    res = ''
    for c in range(len(s)-1, -1, -1):
        res = res + s[c]
        #print s[c]
        return res

        

#reverse('Python')


#2

a function ends the moment a return keyword is reached, this is currently happening in the first iteration of your loop, change the indent of return so the whole loop can run


#3

Oh my god :smile: I keep making these silly mistakes lol.

Thanks! I was totaly blinded to it.


#4