Different ways to reverse a list in #Python: in-place, creating an iterator, slicing with negative step:

>>> numbers = [1, 2, 3, 4, 5] >>> numbers.reverse() >>> numbers [5, 4, 3, 2, 1] >>> list(reversed(numbers)) [1, 2, 3, 4, 5] >>> numbers [5, 4, 3, 2, 1] >>> numbers[::-1] [1, 2, 3, 4, 5]