subject

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] = **
return(myArr)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Difference between ancient and modern mode of information transmission
Answers: 1
question
Computers and Technology, 25.06.2019 12:00
The user needs to add a thick dark green border around a chart in powerpoint. the user can do this in chart tools by choosing?
Answers: 1
You know the right answer?
The function's purpose is to sort the array passed into the parameter. Finish the code. def sort(m...
Questions
question
Mathematics, 04.06.2021 22:00
question
Mathematics, 04.06.2021 22:00
question
Mathematics, 04.06.2021 22:00
question
Mathematics, 04.06.2021 22:10
question
English, 04.06.2021 22:10
Questions on the website: 13722363