fork download
  1. def abc(a):
  2. for i in range(1,len(a)):
  3. c=a[i]
  4. j=i-1
  5. while j>=0 and a[j]>c:
  6. a[j+1]=a[j]
  7. j-=1
  8. a[j+1]=c
  9. a=[5,4,6,8]
  10. abc(a)
  11. print(a)
Success #stdin #stdout 0.03s 9616KB
stdin
Standard input is empty
stdout
[4, 5, 6, 8]