fork(1) download
  1. # your code goes here
  2. t=[1,10,7,23,6]
  3. for j in range(0,len(t)-1):
  4. for i in range(0,len(t)-1):
  5. if t[i]>t[i+1]:
  6. t[i],t[i+1]=t[i+1],t[i]
  7. print(t)
Success #stdin #stdout 0.03s 9616KB
stdin
Standard input is empty
stdout
[1, 6, 7, 10, 23]