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

why do ecologist make models?
Which shape is always a parallelogram (Pentagon,trapezoid,rhombus,or triangle
Susan works 8 hours a day and makes $7.00 per hour. How much money does Susan earn in one week if she works 5 days per week?
What does the drop in barometric pressure from 1003 millibars to 926 millibars tell  you about a hurricane?
If I work then I earn money, but if I'm idle, then I enjoy myself. Either I work or I'm idle. However, if I work, then I do not enjoy myself, while if I'm idle,
Which of the following pairs does NOT represent a correct relationship? (A) glucose; polysaccharide (B) starch; polysaccharide (C) starch; carbohydrate (D) gluc
who is the aztec king
What is the nth term in the sequence: 4, 7, 12, 19, 28 Please show working out
The quantity “one mole” will not be equal to a. 22.4 L of H₂(g) at STP b. 6.02 x 10²³ carbon atoms c. 64 grams of SO₂(g) d. 36 grams of H₂O e. 207 grams of Pb
PLEASE HELP What are 10 scientific things that happened in the hunger games