Dick Moores wrote:

> def fact(n, precision=15, full=False):
   ...

> # 3 (full set to True, forcing precision to be specified--but 
> irrelevant what it is set to)
>  >>> print fact(50, 3, True)
> 30414093201713378043612608166064768844377641568960512000000000000

You don't have to specify precision if you pass full as a keyword argument:
fact(50, full=True)

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to