Question: Code using python(sorting) Define a function named selection_sort_desc(my_list) which takes a Python list of numbers and modifies that list by sorting the values into decreasing
Code using python(sorting)

Define a function named selection_sort_desc(my_list) which takes a Python list of numbers and modifies that list by sorting the values into decreasing order (that is, the largest value in the list will be moved to position 0). You should implement the selection sort algorithm that has been discussed in lectures. You might find it helpful to define a swap() function before you define your selection_sort_desc() function. For example: Test Result a [6,9,8,7,4,2,4,6] [9, 8, 7, 6, 6, 4, 4, 2] selection_sort_desc(a) print (a) Answer: (penalty regime: 0 %)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
