Steve Holden wrote:

> 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
>
> as one example. I'm sure other readers will have their own ways to do
> this, many of them more elegant.

looks like you've missed some recent additions:

    for char in reversed(fruit):
        print char

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to