title: 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
body: <p>#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</p>
  <p>enter code here</p>
  <pre><code>def __init__(self):
      self.balance=0
      print(&quot;Hello Welcome to the Deposit &amp; Withdrawal ATM&quot;)
  
  def deposit(self):
      amount=float(input(&quot;Enter amount to be Deposited: &quot;))
      self.balance += amount
      print(&quot;\n Amount Deposited:&quot;,amount)
  
  i want to add a code that if the user enters a unvalid num or Letter here 
  
  def withdraw(self):
      amount = float(input(&quot;Enter amount to be Withdrawn: &quot;))
      if self.balance&gt;=amount:
          self.balance-=amount
          print(&quot;\n You Withdrew:&quot;, amount)
      else:
          print(&quot;\n Insufficient balance &quot;)
  </code></pre>