Ask Question
19 September, 13:18

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 ()

+1
Answers (1)
  1. 19 September, 16:37
    0
    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 ().
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 () ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers