I came across a strange Codecademy exercise that required a function that would take a string as input and return it in reverse order. The only problem was you could not use
I used this:
def reverse(text): s="" l=len(text) for i in range(l): s+=text[l-1-i] return s