fork download
  1. def abc(a):
  2. L=len(a)
  3. for i in range(L-1):
  4. m=i
  5. for j in range(L+1,i):
  6. if a[j]<a[m]:
  7. a[i],a[m]=a[m],a[i]
  8. a=[64,34,25,12,22,11,90]
  9. abc(a)
  10. print(a)
Success #stdin #stdout 0.02s 9548KB
stdin
Standard input is empty
stdout
[64, 34, 25, 12, 22, 11, 90]