input: Write a function to validate an email list. The function should return a boolean indicating whether a given email address in the list is valid. If any email is invalid, the function should return False, otherwise return True. If the list is empty, return True.
  def validate_mail_list(mail_list):
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
  assert validate_mail_list(["example.user@gmail.com", "bad@example"])==False
  assert validate_mail_list(["example.user@gmail.com", "another.user@domain.com"])==True
  assert validate_mail_list(["invalid.email@com", "bad@example"])==False
  assert validate_mail_list(["valid@example.com", "another@valid.domain"])==True
  assert validate_mail_list([])==True
output: def validate_mail_list(mail_list):
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True