English

______ function is used to arrange the elements of a list in ascending order. - Computer Science (Python)

Advertisements
Advertisements

Question

______ function is used to arrange the elements of a list in ascending order.

Options

  • sort()
  • arrange()
  • ascending()
  • asort()
MCQ
Fill in the Blanks

Solution

sort() function is used to arrange the elements of a list in ascending order.

Explanation:

A list's sort() function puts its elements in ascending or descending order. 

shaalaa.com
  Is there an error in this question or solution?
2022-2023 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×