list = [], list = empty list, for i in range(5):, REPEAT 5 times, list.append(int(input("Enter some numbers: "))), append to list(INPUT("Enter some numbers: ")), size = len(list), size = length(list), hole = 0, hole = 0, insertion = 0, insertion = 0, for i in range(size-1):, REPEAT size-1 times, insertion = list[i], insertion = list[index i], hole = i, hole = i, while hole > 0 and list[hole - 1] > insertion:, while hole > 0 AND list[index hole-1] > insertion then, list[hole], list[hole - 1] = list[hole - 1], list[hole], SWAP list[hole], list[hole - 1], hole = hole-1, INCREMENT hole -1, list[hole] = insertion, list[index hole] = insertion, print("Sorted list:", list), OUTPUT(sorted list)

Leaderboard

Estilo ng visual

Mga pagpipilian

Magpalit ng template

Ibalik ng awtomatikong pag-save: ?