old_contents: #!/usr/local/bin/python3
  # Python Challenge - 6
  # http://www.pythonchallenge.com/pc/def/channel.html
  # http://www.pythonchallenge.com/pc/def/channel.zip
  # Keyword: hockey -> oxygen
  
  import re
  import zipfile
  
  
  def main():
      '''
      Hint: zip, now there are pairs
  
      In the readme.txt:
      welcome to my zipped list.
  
      hint1: start from 90052
      hint2: answer is inside the zip
  
      Last nothing = 46145
      Collect the comments
      '''
      nothing = '90052'
      file_ext = '.txt'
      file_pattern = re.compile(r'Next nothing is (\d+)')
      zf = zipfile.ZipFile('./zip_chall_06/channel.zip')
      comments = []
  
      while True:
          filename = nothing + file_ext
          data = zf.read(filename).decode('utf-8')
          match = re.search(file_pattern, data)
          if match:
              nothing = match.group(1)
              comments.append(zf.getinfo(filename).comment.decode('utf-8'))
          else:
              break
  
      # print('Last nothing is: {}'.format(nothing))
      print(''.join(comments))
  
      return 0
  
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/local/bin/python3
  # Python Challenge - 6
  # http://www.pythonchallenge.com/pc/def/channel.html
  # http://www.pythonchallenge.com/pc/def/channel.zip
  # Keyword: hockey -> oxygen
  
  import re
  import zipfile
  
  
  def main():
      '''
      Hint: zip, now there are pairs
  
      In the readme.txt:
      welcome to my zipped list.
  
      hint1: start from 90052
      hint2: answer is inside the zip
  
      Last nothing = 46145
      Collect the comments
      '''
      nothing = '90052'
      file_ext = '.txt'
      file_pattern = re.compile(r'Next nothing is (\d+)')
      zf = zipfile.ZipFile('./zip_chall_06/channel.zip')
      comments = []
  
      while True:
          filename = nothing + file_ext
          data = zf.read(filename).decode('utf-8')
          match = re.search(file_pattern, data)
          if match:
              nothing = match.group(1)
              # com = zf.getinfo(filename).comment.decode('utf-8')
              comments.append(zf.getinfo(filename).comment.decode('utf-8'))
              # print('Comment: {}'.format(com))
          else:
              break
  
      # print('Last nothing is: {}'.format(nothing))
      print(''.join(comments))
  
      return 0
  
  
  if __name__ == '__main__':
      main()
  
subject: Add print statements for clarity