Write a function to do a selection sort on a list.
What will be an ideal response?
```
def selectionSort(list):
for i in range(0, len(list)):
iMin = i
for j in range(i+1, len(list)):
if list[j] < list[iMin]:
iMin = j
if not iMin == i:
valI = list[iMin]
list[iMin] = list[i]
list[i] = valI
return list
```
You might also like to view...
What is the value of the variable c in the statements that follow? String phrase = "Make hay while the sun is shining."; char c = phrase.charAt(10);
a. w b. h c. i d. None of the above
Case-Based Critical Thinking QuestionsCase 7-3Jillian maintains a site that shows animations, movies, and sound clips made by the comedians that are part of her talk show, Jillian's Chatter. If a partipant wants to make an interactive animation, Jillian should have them create it in a(n) ____ file.
A. swf B. fls C. flv D. swc
RAID 0 automatically duplicates your data and saves it on two identical drives
Indicate whether the statement is true or false
Which of the followings is the correct CSS property for an element's background color?
A. background color B. background-color C. bgcolor D. color