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
All I did to achieve a reverse string is use the xrange function with the length of the string in a for loop and step back per the following:
xrange
myString = "ABC" for index in xrange(len(myString),-1): print index
My output is "CBA"