Sorting a list.
|
aList = [ 2, 6, 4, 8, 10, 12, 89, 68, 45, 37 ]
print "Data items in original order"
for item in aList: print item,
aList.sort()
print "nnData items after sorting"
for item in aList: print item,
print
|
|
|
|
|
Related Scripts with Example Source Code in same category :
-
-
|
|