Steve Holden <[EMAIL PROTECTED]> wrote:
>  Ken wrote:
> > "Steve Holden" <[EMAIL PROTECTED]> wrote in message 
>  [...]
> >> def mean(*x):
> >>     total = 0.0
> >>     for v in x:
> >>         total += v
> >>     return v/len(x)
> >>
> > 
> >  think you want total/len(x) in return statement
> > 
>  Yes indeed, how glad I am I wrote "untested". I clearly wasn't pair 
>  programming when I wrote this post ;-)

Posting to comp.lang.python is pair programming with the entire
internet ;-)


-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to