Link Details

Link 10084 thumbnail
User 111696 avatar

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.
  • 7
  • 0
  • 720
  • 134

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)