By bloid
via retrograde-orbit.blogspot.com
Published: Jan 01 2007 / 15:11
Given a python list there are two inbuilt ways that the list can be sorted. One is using the lists sort() method. This will sort the list in-place. The second is the sorted() function introduced in Python 2.4. The sorted function returns a sorted list, but leaves the original list untouched.



Add your comment