input: 
  import re
  
  def validate_mail_list(mail_list):
      """ Validate a list of email addresses. The function returns True if all email addresses
      in the list are valid, otherwise it returns False.
      >>> validate_mail_list(["example.user@gmail.com", "bad@example"])
      False
      >>> validate_mail_list(["john.doe@example.com", "jane.doe@example.co"])
      True
      """
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
  
output:     for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True