You are viewing a single comment's thread from:
RE: Learn Python Series (#6) - Handling Lists Part 2
list.sort() modifies the existing list, while sorted() returns a new list without modifying the given list.
list.sort() modifies the existing list, while sorted() returns a new list without modifying the given list.