Ask 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 () print () sort () order ()

+4
Answers (1)
  1. 4 March, 19:05
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers