7/15 Does not execute


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


This is what it looks like on the screen


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 " ".


Thank you. I appreciate the help.