test_exsort.py 290 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 def exchangeSort(n,s) : for i in range(n-1) : j = i+1 while j <= n-1 : if s[i] > s[j] : temp = s[i] s[i] = s[j] s[j] = temp j += 1 s=[4,5,345,2,10,14,90,8,7,56,333] exchangeSort(len(s),s) print(s)