> Note, however, that there are more pythonic ways to perform this task. > You might try: > > for index in range(len(fruit)): > letter = fruit[-index-1] > print letter
Or, if you're *really* just trying to reverse the string, then the following might read more easily (although it's probably longer): fruit="banana" fruit = list(fruit) fruit.reverse() fruit = ''.join(fruit) print fruit It turns the string into a list, reverses it, joins it back together (back into a string), then prints it. Craig -- http://mail.python.org/mailman/listinfo/python-list