lexyhallzie
lexyhallzie lexyhallzie
  • 14-01-2021
  • Computers and Technology
contestada

Which line of code will sort the list.

aList = [9, 2, 3.5, 2]

aList.sort()

aList(order)

sort(aList)

order(aList)

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 19-01-2021

Answer:

aList.sort()

Explanation:

Given

List: aList

Required

instruction to sort the list

The given code segment is written in Python.

In python, to sort a list; you make use of

[list-name].sort()

So, in this case, the line of code to sort aList is aList.sort()

Answer Link

Otras preguntas

Who is Mr.Anonymous?
Officers respond to the following call ( Black male with a firearm ) suspect runs trips and fall the firearm falls from waistband suspect picks firearm back up.
Plz help 100 points and brainliest
Which of these is most associated with an authoritarian government? A. The legislative process is slow B. Freedom of expression is valued C. Leaders have absol
write and solve an equation to find the number. The perimeter of a patio is 64 feet. The length (L) is 10 feet longer than the width (W). What is the width of
will mark brainliest!! 7th grade math!!
Ken made $14,500 in five months at his new job. How much can he make in two years if his pay remains constant?
I need help mind if someone can help me please???
HELP ME PLZ I NEED HELP WITH THIS!! PLZZ ON SCAMS PLZZZZ!!!
What is the cost of four small drinks that cost $4.50 each with a sales tax of 4%? $25.20 $18.72 $18.00 $22.00