lis = [1,3,5,2,7,34]for i in range(len(lis)): for x in range(i): if lis[x] > lis[x+1]: lis[x],lis[x+1] = lis[x+1],lis[x]print(lis)