Quickpaste.it
Create Paste
Top Pastes
Recent Pastes
Settings
Account
Inheritance bank book
Created By
Anonymous
Expires never
Raw
Download
0
class Bank_Account: balance=0 def deposit(self): amount=float(input("Enter amount to be Deposited: ")) self.balance += amount print("\n Amount Deposited:",amount) def withdraw(self): amount = float(input("Enter amount to be Withdrawn: ")) if self.balance>=amount: self.balance-=amount print("\n You Withdrew:", amount) else: print("\n Insufficient balance ") def display(self): print("\n Net Available Balance=",self.balance) s = Bank_Account() s.deposit() s.withdraw() s.display()class Bank_Account: balance=0 def deposit(self): amount=float(input("Enter amount to be Deposited: ")) self.balance += amount print("\n Amount Deposited:",amount) def withdraw(self): amount = float(input("Enter amount to be Withdrawn: ")) if self.balance>=amount: self.balance-=amount print("\n You Withdrew:", amount) else: print("\n Insufficient balance ") def display(self): print("\n Net Available Balance=",self.balance) s = Bank_Account() s.deposit() s.withdraw() s.display()class Bank_Account: balance=0 def deposit(self): amount=float(input("Enter amount to be Deposited: ")) seclass Bank_Account: balance=0 def deposit(self): amount=float(input("Enter amount to be Deposited: ")) self.balance += amount print("\n Amount Deposited:",amount) def withdraw(self): amount = float(input("Enter amount to be Withdrawn: ")) if self.balance>=amount: self.balance-=amount print("\n You Withdrew:", amount) else: print("\n Insufficient balance ") def display(self): print("\n Net Available Balance=",self.balance) s = Bank_Account() s.deposit() s.withdraw() s.display()lf.balance += amount print("\n Amount Deposited:",amount) def withdraw(self): amount = float(input("Enter amount to be Withdrawn: ")) if self.balance>=amount: self.balance-=amount print("\n You Withdrew:", amount) else: print("\n Insufficient balance ") def display(self): print("\n Net Available Balance=",self.balance) s = Bank_Account() s.deposit() s.withdraw() s.display()