input: Write a function to validate a list of emails. The function should return a boolean indicating whether a given email address is valid.
  
  def validate_email_list(mail_list):
      for email in mail_list:
          if not re.match(r"[^@]+@[^@]+\.[^@]+", email):
              return False
      return True
  
  assert validate_email_list(["example.user@gmail.com", "bad@example"])==False
  assert validate_email_list(["bob.smith@company.com"])==True
  assert validate_email_list(["test", "user@gmail.com"])==False
  assert validate_email_list([])==True
output: def validate_email_list(mail_list):
      for email in mail_list:
          if not re.match(r"[^@]+@[^@]+\.[^@]+", email):
              return False
      return True