Hi!
On 15 Jul., 21:26, Carlos Córdoba wrote:
> This is not about RTFM, because L1.sort() doesn't produce any result. It
> just modifies the original list in place.
... and this is precisely what the manual tells you.
However, you are right:
> I think that Mikie wants to assign the sorted list
Carlos,
just what I needed.
I have looked in scipy, but no Quartiles.
On Jul 15, 1:26 pm, Carlos Córdoba wrote:
> This is not about RTFM, because L1.sort() doesn't produce any result. It
> just modifies the original list in place.
>
> I think that Mikie wants to assign the sorted list to another
This is not about RTFM, because L1.sort() doesn't produce any result. It
just modifies the original list in place.
I think that Mikie wants to assign the sorted list to another list. In that
case what you need is the sorted command:
sage: L1 = [56,2,4,10]
sage: sort_L1 = sorted(L1)
sage: sort_L1
On Jul 15, 2009, at 12:14 , Mikie wrote:
>
> How does one sort a list in Sage? I have tried
>
> L1=[56,2,4,10]
> Sort_ = L1.sort()
>
> and nothing is produced.
As the saying goes, RTFM :-}
sage: L1=[56,2,4,10]
sage: L1.sort?
Type: builtin_function_or_method
Base Class:
String F
Hi Mikie,
On Thu, Jul 16, 2009 at 5:14 AM, Mikie 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