<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
> no sort() is needed to calculate the median of a list.
> you just need one temp var.

Of course.  But for a short enough list, the builtin sort() method may be 
faster than an O(n) algorithm coded in Python.  And .sort() is already 
present.

tjr




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

Reply via email to