On 21/9/2013 12:18, MRAB wrote:

> On 21/09/2013 13:53, Dave Angel wrote:
> [snip]
>> Taking Steven's suggested code, and changing it so it uses a COPY of the
>> global list;
>>
>> def median():
>>      # Relies on the global variable called List.
>>      # assumes there is at least one number in that list
>>      numbers = List.sorted()
>
> That should be:
>
>       numbers = sorted(List)

OOPS.  Thanks, you're so right.

-- 
DaveA


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to