Need help on a project To :"Create a class called BankAccount with the following parameters "
princeudo52 at gmail.com
princeudo52 at gmail.com
Thu Dec 24 07:59:49 EST 2015
here is what i came up with
Class BankAccount(object):
def_init_(self, balance):
self.Balance = balance
def deposit(self, amount):
self.Balance = amount
def withdraw(self,amount):
if(self.Balance += amount):
return invalid transaction
#but my challange now is :Create a subclass MinimumBalanceAccount of the BankAccount class.
More information about the Python-list
mailing list