input: Write a Python function to validate a list of emails. The function should return a boolean indicating whether the list contains only valid email addresses. A valid email address must have an @ symbol, followed by at least one character before and after the @ symbol, and a period (.) followed by at least one character after the @ symbol.
  
  Input:
  mail_list = ["example.user@gmail.com", "bad@example"]
  
  Output:
  def validate_mail_list(mail_list):
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
output: def validate_mail_list(mail_list):
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True