input: Write a function to simulate a simple ATM machine by defining an `Account` class and an `ATM` class. The `Account` class should have methods for initializing the account with a name and balance, depositing money, and withdrawing money. The `ATM` class should have methods to create an account, deposit money, withdraw money, and print the balance of an account. If the given name doesn't match any account, no action should be taken.
  
  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:
                  print(name, " Balance: ", account.balance)
  
  assert ATM().printBalance("John Doe")==None
  assert ATM().createAccount("John Doe", 1000)
  assert ATM().deposit("John Doe", 500)
  assert ATM().printBalance("John Doe")=="John Doe  Balance: 1500"
  assert ATM().withdrawal("John Doe", 300)
  assert ATM().printBalance("John Doe")=="John Doe  Balance: 1200"
  assert ATM().printBalance("Jane Doe")==None
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:
                  print(name, " Balance: ", account.balance)