<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fill_notebook(work_notebook, script_blocks):
 """Writes the Jupyter notebook cells Parameters script_blocks : list Each list element should be a tuple of (label, content, lineno). """


    for blabel, bcontent, lineno in script_blocks:
        if blabel == 'code':
            add_code_cell(work_notebook, bcontent)
        else:
            add_markdown_cell(work_notebook, bcontent + '\n')