Boston Python Workshop 3/Tuesday OO lesson/banking.py: Difference between revisions
Content added Content deleted
No edit summary |
imported>Jazztpt No edit summary |
||
Line 1: | Line 1: | ||
<nowiki><code>class Bank: |
|||
def logIn(self, username, password): |
def logIn(self, username, password): |
||
Line 26: | Line 26: | ||
print "Account just withdrew %d bucks; new balance is: %d" % (amount, self.balance) |
print "Account just withdrew %d bucks; new balance is: %d" % (amount, self.balance) |
||
</code> |
</code> |
||
</nowiki> |