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
def reverse(text): a="" l=len(text) while(l>=1): a+=text[l-1] l-=1 return a
i just concatenated the string a with highest indexes of text (which keeps on decrementing by 1 each loop).