code: def file_to_list(in_file):
      ''' Reads file into list '''
      lines = []
      for line in in_file:
          # Strip new line
          line = line.strip('\n')
  
          # Ignore empty lines
          if line != '':
              # Ignore comments
              if line[0] != '#':
                  lines.append(line)
  
      return linef file_to_list(in_file):
      ''' Reads file into list '''
      lines = []
      for line in in_file:
          # Strip new line
          line = line.strip('\n')
  
          # Ignore empty lines
          if line != '':
              # Ignore comments
              if line[0] != '#':
                  lines.append(line)
  
      return lines
docs: Reads file into list