<html>
<body>
on
<a href="http://wiki.python.org/moin/SimplePrograms" eudora="autourl">
http://wiki.python.org/moin/SimplePrograms</a> I found this
code:<br><br>
=======================================<br>
class BankAccount(object):<br>
&nbsp;&nbsp;&nbsp; def __init__(self, initial_balance=0):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.balance =
initial_balance<br>
&nbsp;&nbsp;&nbsp; def deposit(self, amount):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.balance += amount<br>
&nbsp;&nbsp;&nbsp; def withdraw(self, amount):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.balance -= amount<br>
&nbsp;&nbsp;&nbsp; def overdrawn(self):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return self.balance &lt;
0<br>
my_account = BankAccount(15)<br>
my_account.withdraw(5)<br>
print my_account.balance<br>
=========================================<br><br>
This prints the expected &quot;10&quot;. <br><br>
My question is, of what use can &quot;overdrawn&quot; be put? If I change
the withdrawal amount to 25, it prints the expected &quot;-10&quot;,
whether the class contains the &quot;overdrawn&quot; function or
not.<br><br>
Thanks,<br><br>
Dick Moores</body>
</html>