Sortowanie przez wstawianie¶ Opis problemu¶ Implementacja¶ 1 2 3 4 5 6 7 8 9 10 11 12 13def insertion_sort(array: list): for i in range(1, len(array)): j = i while j > 0 and array[j] < array[j - 1]: array[j], array[j - 1] = array[j - 1], array[j] j -= 1 array = [7, 3, 0, 1, 5, 2, 5, 19, 10, 5] insertion_sort(array) print(array)