input: Write a function to validate a list of emails. The function should return a boolean indicating whether a given email address is valid. The input is a list of email addresses and the output is a boolean value. If an email address is invalid, the function should return False immediately. If all email addresses are valid, the function should return True. If the input list is empty, the function should 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(["user@domain.com", "example.user@gmail.com"])==True
  assert validate_mail_list(["user@domaincom", "valid.email@com"])==False
  assert validate_mail_list(["good.email1@yahoo.com", "good.email2@hotmail.com"])==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