The function’s purpose is to sort the array passed into the parameter. Finish the code.
def sort(myArr):
length = len(myArr)
for n in range(length – 1):
for index in range(n + 1, length):
if myArr[n] > myArr[index]:
temp = myArr[n]
myArr[n] = myArr [index]
myArr[index] =
A. myArr[n]
B. temp
C. index
return(myArr)
Please let us know your comments regarding the correct answer to the question. Each of your comments will be evaluated by us and correct comments will be shared.