How can you loop over an iterable in reverse?
If you're working with a list, a string, or any other sequence in Python, you can reverse that sequence using Python's slicing syntax:
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Looping series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.
The list sort method sorts lists in-place, but the built-in sorted function can sort any iterable!