fork download
  1. # your code goes here
  2. t=[1,10,7]
  3. t2=[12,3,6,0]
  4. for j in range (0,2):
  5. for i in range(0,2):
  6. if t[i]>t[i+1]:
  7. t[i],t[i+1]=t[i+1],t[1]
  8. t2.sort()
  9. print(t)
  10. print(t2)
  11.  
Success #stdin #stdout 0.08s 8000KB
stdin
Standard input is empty
stdout
[1, 7, 10]
[0, 3, 6, 12]