[Tutor] Calculating a math formula and finding errors
Jens Kubieziel
maillist@kuwest.de
Tue Jan 14 09:53:02 2003
On Mon, Jan 13, 2003 at 03:22:07AM -0800, Danny Yoo wrote:
> def factorial(z):
> assert z >= 0, "Invalid input: z must be nonnegative."
^^^^^^
Where can I find some information what this exactly does? I searched my
docs and find something on $PYTHONDOC/ref/assert.html. Are there some
other examples?
Now this function _always_ raises an exception. And I'm a bit perplex ...
--
Jens Kubieziel mailto:jens@kubieziel.de
So, how's your love life? Still holding your own?