input: Write a function to create a class that represents a bank account in Python. The class should have methods to initialize the account with a name and balance, deposit an amount into the account, withdraw an amount from the account if the balance is sufficient, and get the current balance of the account. If the withdrawal amount exceeds the balance, return False. If the withdrawal is successful, return True.
  assert BankAccount("John Doe", 1000).withdraw(500)==True
  assert BankAccount("Jane Smith", 500).withdraw(1000)==False
  assert BankAccount("Alice Johnson", 2000).deposit(500).get_balance()==2500
  assert BankAccount("Bob Brown", 0).deposit(100).withdraw(50)==True
  assert BankAccount("Chris White", 300).withdraw(300)==True
output: class BankAccount:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
          return self
  
      def withdraw(self, amount):
          if amount > self.balance:
              return False
          self.balance -= amount
          return True
  
      def get_balance(self):
          return self.balance