input: Write a function to validate a list of emails. The function should return a boolean indicating whether each email address in the list is valid. If all email addresses are valid, return True, otherwise return False.
  assert validate_mail_list(["example.user@gmail.com", "bad@example"])==False
  assert validate_mail_list(["example.user@gmail.com", "correct@example.com"])==True
  assert validate_mail_list(["test@test", "another@example."])==False
  assert validate_mail_list([])==True
  assert validate_mail_list(["valid.email@example.com"])==True
output: def validate_mail_list(emails):
      import re
      pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
      for email in emails:
          if not re.match(pattern, email):
              return False
      return True