Lisa's teacher asks her to write a block of code that will list the prices numerically in Python. Which function should she use? append() print() sort() order()

Respuesta :

Answer:

sort()

Explanation:

We are only required to list and not print. And hence as below:

lis=['1','5','3','4']

lis.sort()

print(lis)

this will list the list elements numerically and then print the sorted list as well.

And,

lis=['1','5','3','4']

lis.sort()

This will list the list elements numerically but will not print. And hence the correct option is sort().

Answer:

sort ()

Explanation:

I took the test and got the answer right