Hi. This is probably a really dumb question, but I just don't get why it is throwing me the error. I am on https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/1?curriculum_id=4f89dab3d788890003000096#.
I apologise if the answer is highly obvious. I just don't get it.
It gives me the error: 'Oops, try again. Did you create a function called reverse? Your code threw a "global name 'reverse' is not defined" error.'
I expect it to, well, change the text string in a way that it makes it in reverse. I do not understand why it thinks I never defined the function in the first place. (I think I did?)
letters =  finish =  def reverse(text): letters = list(text) y = len(list) if y < 0: text = ' '.join(finish) #unsure if this is correct return text else: x = letters[y] finish.append(x) return y -= 1