input: from typing import List
  
  
  def BankAccount_operations(name: str, operations: List[str]) -> float:
      """ Given a bank account owner's name and a list of operations, simulate the account operations and return the final balance.
      The operations can be "deposit <amount>", "withdraw <amount>", or "check". "check" operation does not affect the balance but is included to simulate real-world checks.
      
      >>> BankAccount_operations("Alice", ["deposit 100", "withdraw 50", "check", "deposit 20"])
      70.0
      >>> BankAccount_operations("Bob", ["deposit 50", "withdraw 100", "check"])
      50.0
      """
      account = BankAccount(name, 0.0)
      for op in operations:
          parts = op.split()
          if parts[0] == "deposit":
              account.deposit(float(parts[1]))
          elif parts[0] == "withdraw":
              account.withdraw(float(parts[1]))
      return account.get_balance()
output:     class BankAccount:
          def __init__(self, name: str, balance: float):
              self.name = name
              self.balance = balance
          
          def deposit(self, amount: float):
              self.balance += amount
          
          def withdraw(self, amount: float):
              if amount <= self.balance:
                  self.balance -= amount
              else:
                  self.balance = 0.0
          
          def get_balance(self) -> float:
              return self.balance