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