Python‎ > ‎list‎ > ‎

list.reverse()

http://www.adilwaseem.com/

Definition
Reverse the order of the items in the list.

Syntax
L.reverse()

Parameters
None

Examples
The return is equal to:
 x=[55,887,99,777]
x.reverse()
print(x)
>>> 
[777, 99, 887, 55]
>>> 


Comments