I know it works. But I was expecting "T", as we havnt mentioned anything for the start and end, I expected Python to start with 0 and move backwards. Please let me know how it works.
–
thefourtheyeJun 12 '13 at 13:34

For future reference when an object has a method like [].reverse() it generally performs that action o n the object (ie. the list is sorted and returns nothing, None) in contrast to built in functions like sorted which perform an action on an object and returns a value (ie the sorted list)

rev is an empty string var. The for loop iterates the original string backward, (from the end "last letter" to the beginning "first letter"). In every iteration, the corresponding letter is appended to rev. Let me know if this is helpful :]
–
iamazizMay 8 '14 at 8:42