Mega Code Archive

 
Categories / Python / List
 

List sort() Demo

# Sort the items of the list, in place.  a = [66.25, 333, 333, 1, 1234.5] a.sort() print a