input: 
  def validate_mail_list(mail_list):
      """Validate a list of email addresses. Return True if all email addresses are valid, otherwise return False.
      The validation is based on the format "[^@]+@[^@]+\.[^@]+".
  
      >>> validate_mail_list(["example.user@gmail.com", "bad@example"])
      False
      >>> validate_mail_list(["user@domain.com", "info@company.co"])
      True
      """
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
  
output:     import re