List sort() Demo : List Sort « List « Python






List sort() Demo

List sort() Demo
 
# Sort the items of the list, in place. 

a = [66.25, 333, 333, 1, 1234.5]

a.sort()

print a

           
         
  








Related examples in the same category

1.Sort elements in a listSort elements in a list
2.Sorting a list.