Q. Which built-in function sorts a list?
Solution:
sorted() returns a new sorted list, e.g., sorted([3, 1, 2]) = [1, 2, 3].
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
sorted() returns a new sorted list, e.g., sorted([3, 1, 2]) = [1, 2, 3].
Strengthen Your Practice with our comprehensive question bank.