7/15 Does not execute


#1

Why doesn't the code execute?
def reverse(text):
rev = " "
for i in range(0, len(text)):
rev += text[len(text) - 1 - i]
return rev


#2

This is what it looks like on the screen


#3

Try to use empty string here:

You want to reverse the word. But with your for loop you are adding the letters to rev which is equal to one empty space. Use "" instead of " ".


#4

Thank you. I appreciate the help.