input: 
  def validate_mail_list(mail_list):
      """Validates a list of email addresses and returns a boolean indicating whether all given email addresses are valid.
      >>> validate_mail_list(["example.user@gmail.com", "bad@example"])
      False
      >>> validate_mail_list(["user.name@example.co", "contact@domain.org"])
      True
      """
      import re
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
  
output:     import re
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True