docs: def task_list(task_array):
      """Return a task list.
  
      The task_array should be 2-dimensional; the first item should be the task
      text, and the second the boolean completion state.
  
      >>> task_list([["Be born", True], ["Be dead", False]])
      '- [X] Be born\\n- [ ] Be dead'
  
      When displayed using `print`, this will appear as:
  
          - [X] Be born
          - [ ] Be dead
      """
      tasks = []
      for item, completed in task_array:
          task = "- [ ] " + esc_format(item)
          if completed:
              task = task[:3] + "X" + task[4:]
          tasks.append(task)
      return "\n".join(tasks)