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(i+1,L):
  6. if a[j]<a[m]:
  7. m=j
  8. a[i],a[m]=a[m],a[i]
  9. a=[64,34,25,12,22,11,90]
  10. abc(a)
  11. print(a)
Success #stdin #stdout 0.04s 9564KB
stdin
Standard input is empty
stdout
[11, 12, 22, 25, 34, 64, 90]