What does list.sort() return?
- A A new sorted list
- B None, because it sorts in place
- C A tuple
- D The original unsorted list
Answer
None, because it sorts in place
sorted() returns a new list and leaves the original untouched. Assigning the result of list.sort() gives None, which is a common bug.





