input: Write a function to simulate a simple ATM machine using Python. The program should include an Account class with methods for depositing and withdrawing money, and an ATM class to manage multiple accounts. The ATM class should allow creating accounts, depositing into an account, withdrawing from an account, and printing the balance of an account. If the given account does not exist, the methods should handle the case appropriately.
  
  
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          if amount <= self.balance:
              self.balance -= amount
          else:
              print("Insufficient funds")
  
  class ATM:
      def __init__(self):
          self.accounts = []
  
      def createAccount(self, name, balance):
          account = Account(name, balance)
          self.accounts.append(account)
  
      def deposit(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.deposit(amount)
                  return
          print("Account not found")
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
                  return
          print("Account not found")
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
                  return
          print("Account not found")
  
  # Example test cases
  atm = ATM()
  atm.createAccount("Alice", 1000)
  atm.deposit("Alice", 500)
  atm.withdrawal("Alice", 200)
  atm.printBalance("Alice")  # Output: Alice  Balance:  1300
  atm.withdrawal("Alice", 2000)  # Output: Insufficient funds
  atm.printBalance("Bob")  # Output: Account not found
  
output: 
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          if amount <= self.balance:
              self.balance -= amount
          else:
              print("Insufficient funds")
  
  class ATM:
      def __init__(self):
          self.accounts = []
  
      def createAccount(self, name, balance):
          account = Account(name, balance)
          self.accounts.append(account)
  
      def deposit(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.deposit(amount)
                  return
          print("Account not found")
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
                  return
          print("Account not found")
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
                  return
          print("Account not found")
  