input: Write a function to simulate a simple ATM machine by creating an Account class and an ATM class. The Account class should have methods to initialize an account, deposit money, and withdraw money. The ATM class should have methods to initialize the ATM, create accounts, deposit money into an account, withdraw money from an account, and print the balance of an account. The function should be able to handle multiple accounts and correctly manage the transactions for each account.
  
  
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          self.balance -= amount
  
  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)
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  return account.balance
  
  
  assert ATM().printBalance("Alice") == None
  atm = ATM()
  atm.createAccount("Alice", 1000)
  assert atm.printBalance("Alice") == 1000
  atm.deposit("Alice", 500)
  assert atm.printBalance("Alice") == 1500
  atm.withdrawal("Alice", 200)
  assert atm.printBalance("Alice") == 1300
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):
          self.balance -= amount
  
  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)
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  return account.balance