Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?
Dave Angel
davea at davea.name
Sat Sep 21 14:09:24 EDT 2013
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
More information about the Python-list
mailing list