Python List reverse() Method
Example
Reverse the order of the fruits list:
fruits = ['apple', 'banana', 'cherry'] fruits.reverse()
Definition and Usage
The reverse() method reverses the order of the elements.
Syntax
list.reverse()
Parameter Value
No Parameters
Related Pages
The built-in function reversed() returns an iterator object in reverse.