<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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. '- [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)