t=[1,10,7,0,6,7,8]for j in range(0): for i in range(0): if t[i]>t[i+1]: t[i],t[i+1]=t[i+1],t[i]print(t)
Standard input is empty
[1, 10, 7, 0, 6, 7, 8]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!