Q. Which of the following functions can be used to sort a list in Python?
β
Correct Answer: (D)
Both sort() and sorted()
Explanation: The `sort()` method sorts a list in place, while `sorted()` returns a new sorted list.