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

Given f(x)=x^4-7x^3+6x^2+8x+9a) Determine the x- and y-coordinates of the lowest point on the graph.b) Size the x-window from [-10,10]. Find the highest and low
use mental math and a pattern to find the product of 70*300
What determines the ideal mechanical advantage of a pulley?
Contrast a plant cell with an animal cell. How can you tell them apart?
whats the difference between the concepts 'annual temperature range' and 'diurnal temperature range'
use mental math and a pattern to find the product of 70*300
How long did it take to build Sagrada familia
how bullet train and circuit breaker work on the magnetic effect of current?
How do you round 6.512 459 to the nearest ten-thousandth?
how do you do this equation? 9x+(y)i-5=-12+4