[Tutor] Class question
Deirdre Saoirse
deirdre@deirdre.net
Thu, 29 Jun 2000 14:03:32 -0700 (PDT)
On Thu, 29 Jun 2000, Sean 'Shaleh' Perry wrote:
> > def _init_(self, initialAmount):
> > self.balance = initialAmount
> a) it is __init__()
>
> b) your e-mail does not reflect proper code layout. Whitespace is
> important to python, it is how the interpreter knows which piece of
> code goes where.
Right, so basically that means that self.balance is not set within the
_init_ function.
--
_Deirdre * http://www.sfknit.org * http://www.deirdre.net
"Linux means never having to delete your love mail." -- Don Marti