Consider the following code segment which makes use of the list deck and the positive integer i: Which of the following could be displayed when this segment of code is executed, assuming that the block will sort the parameter list in alphabetical order from A to Z, and the user responds to each input? Steve Andrew Kevin Alex Joe Matt Sally Heather Barbie Tim Tim Tim

Relax

Respuesta :

Answer: A) Steve Andrew Kevin

B) Alex Joe Matt C) Sally Heather Barbie D) Tim Tim Tim

Explanation:

In this exercise we have to use the knowledge of computational language in python to write the following code:

The code can be found in the attached image.

That way, to find it more easily we have the code like:

#Create a list of strings (names).

students = ['Steve" ,"Andrew ","Kevin", "Alex", "Joe ","Matt" , "Sally" ,"Heather ","Barbie" ,"Tim", "Tim", "Tim"]

student_name = "Lupe"

# Add student name to front of the list.

students.insert(0,student_name)

#Show me the new list.

print(students)

See more about python at brainly.com/question/26104476

Ver imagen lhmarianateixeira