Ask Question
7 June, 22:16

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

+2
Answers (1)
  1. 8 June, 01:51
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers