code: def print_languages_and_exit(lst, status=1, header=True):
      
      if header:
          print("Available languages:")
      for lg in lst:
          print("- %s" % lg)
      sys.exit(status)
docs: print a list of languages and exit