How about adding rational fraction to Python?

Mark Dickinson dickinsm at gmail.com
Wed Feb 27 00:21:09 EST 2008


On Feb 26, 11:55 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> So use:  return sum(number_list) / float(len(number_list))
> That makes it somewhat more explicit what you want.  Otherwise

But that fails for a list of Decimals...

Mark



More information about the Python-list mailing list