[Tutor] Class instance understanding = None

spir denis.spir at free.fr
Fri Feb 27 07:51:53 CET 2009


Le Fri, 27 Feb 2009 00:06:59 -0500,
David <david at abbottdavid.com> s'exprima ainsi:

> Hi Everyone,
> I go through the archived [Tutor] mail list to find programs others have 
> tried to do. I found one that would keep track of a petty cash fund. 
> please point out my misunderstanding.
> Here is what I started with;
> <code>
[...]
> </code>
> 
> results;
> The current date is:  02/27/09
> balance =  100.0
> withdraw =  None
> deposit =  None
> 
> expected results;
> The current date is:  02/27/09
> balance =  100.0
> withdraw =  50.0
> deposit =  100.0
> 
> thanks,
> -david

So, what is your question, actually? If you do not want None, replace it with 0.0. None is good as a flag value.
Denis
------
la vita e estrany


More information about the Tutor mailing list