code: def show_first_and_last_lines(result):
      
      lines = [line for line in result.split('\n')]
      if len(lines) < 11:
          for line in lines:
              print(line)
          return
      print('Showing first few lines...')
      for line in lines[:5]:
          print(line)
      print('...')
      print('Showing last few lines...')
      for line in lines[-5:]:
          print(line)
docs: Just print the first and last five lines of (pypi) output