Categories
October Surprise 2024

Python List sort() Method – GeeksforGeeks

The sort () method is used to arrange the elements of a list in a specific order, either ascending or descending. It changes the original list directly, so no new list is created.