Hi Mikie,

On Thu, Jul 16, 2009 at 5:14 AM, Mikie<thephantom6...@hotmail.com> wrote:
>
> How does one sort a list in Sage?  I have tried
>
> L1=[56,2,4,10]
> Sort_ = L1.sort()
>
> and nothing is produced.

Try this:

----------------------------------------------------------------------
| Sage Version 4.1, Release Date: 2009-07-09                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: L = [56, 2, 4, 10]
sage: L
[56, 2, 4, 10]
sage: L.sort()
sage: L
[2, 4, 10, 56]

That sort() function is built into Python.

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to