Question: Continuing on from the previous question, write a function called my insertion sort (a list) which takes a list of numbers as a parameter. The

 Continuing on from the previous question, write a function called my

Continuing on from the previous question, write a function called my insertion sort (a list) which takes a list of numbers as a parameter. The function implements the Insertion Sort algorithm. Note: you can use the insertion_single_pass() function defined in the previous question, or you can simply use nested loops to solve this problem. Note: you must not use the sort() method or the sorted function in your solution. For example: Test Result numbers = [20, 27, 69, 10, 15, 41] [10, 15, 20, 27, 41, 69] my_insertion_sort(numbers) print(numbers) Answer: (penalty regime: 0, 0, 5, 10, 15, 20, 25. 30. 35, 40, 45.50%) Reset answer 1 def my_insertion_sort(a list): 2- for index in range(1, len(a list)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!