Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort list in python

l = [64, 25, 12, 22, 11, 1,2,44,3,122, 23, 34]

for i in range(len(l)):
    for j in range(i + 1, len(l)):

        if l[i] > l[j]:
           l[i], l[j] = l[j], l[i]

print l
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #list #python
ADD COMMENT
Topic
Name
6+9 =