11 months ago
Here is my Code:
class Account: def __init__(self, owner, balance, deposit, withdraw): self.owner=owner self.balance=balance self.deposit=deposit self.withdraw=withdraw def __str__(self): return f'Account Owner{self.owner} Account Balance {self.balance}' def Deposit(self,deposit): self.balance+=self.deposit print ('Deposit Accepted') def Withdraw(self,withdraw): self.balance-=withdraw while self.withdraw>=self.balance: print ('Funds Unavailable') else: print ('Withdrawal Accepted') acct1 = Account('Jose',100,0,0) acct1.deposit(50)
Below is the error: TypeError Traceback (most recent call last) <ipython-input-56-a52dcc476376> in <module> ----> 1 acct1.withdraw(75) TypeError: 'int' object is not callable
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Answer(s)