#class of bank account with withdraw and deposite how do i add a code that tells the customer to enter a valid amount if he enter symbols or unvalid number or character of the deposite or withdraw
enter code here
def __init__(self):
self.balance=0
print("Hello Welcome to the Deposit & Withdrawal ATM")
def deposit(self):
amount=float(input("Enter amount to be Deposited: "))
self.balance += amount
print("\n Amount Deposited:",amount)
i want to add a code that if the user enters a unvalid num or Letter here
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 ")