input: from typing import List
  import re
  
  def validate_mail_list(mail_list: List[str]) -> bool:
      """
      Validates a list of email addresses to check if all are in a valid format.
      
      >>> validate_mail_list(["example.user@gmail.com", "bad@example"])
      False
      >>> validate_mail_list(["user@domain.com", "other.user@sub.domain.com"])
      True
      """
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
output:     for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True