Sorting Lists in Python

Consider a Python list called mylist. How does using sorted(mylist) differ from mylist.sort()?

Answer Panel