list = [6,7,2,5,7,9,12,54,7,32,354,2143,765,12,35,57,23,4,6,78] done = True while done: done = False for i in range(len(list)-1): #done = True if list[i] > list[i+1]: list[i],list[i+1]=list[i+1],list[i] print("\nPosortowano: ", list)