code: def get_stripped_file_lines(filename):
      
      try:
          lines = open(filename).readlines()
      except FileNotFoundError:
          fatal("Could not open file: {!r}".format(filename))
  
      return [line.strip() for line in lines]
docs: Return lines of a file with whitespace removed