Python‎ > ‎list‎ > ‎

list.sort()

http://www.adilwaseem.com/

Definition
Returns with items in order.

Syntax
L.sort(key=None, reverse=False) -> None

Parameters
None

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

Comments