This is starting to become an annoying habit now.
It's starting get frustrating!
Anyway. I understood what I needed to do, but no idea how to achieve it. I had to come straight to the forums to look at the answer. I don't think any of this is syncing in and it's starting to get frustrated.
def reverse(text): new_word = "" for i in range((len(text) -1), -1, -1): new_word += text[i] return new_word print reverse("Penri")
Now. in range() codecademy told me that range(start, stop, step) which makes perfect sense. Start at this index, Stop at this one, Step through it like that.
Now, reverse the word. For me it sounded like I had to change the order of range() to be range(Start at the end, Stop at the start, Step like that) but HOW does -1 do that? how can START, STOP and STEP be -1? That makes zero sense.
I feel that this section is not helping anyone out.
Can someone help me?
This example gives me 5,4,3,2,1,0. Again, 0 sense. Start is lengh, STOP is -1 STEP is -1?
Is this explained in another exercise on codecademy?