C1_W3 Assignment - local variable

I am trying to complete the W1 graded assignment and have been having many issues implementing the get_sub_volume function. I have tried everything I could but am getting the error “UnboundLocalError: local variable ‘learner_func_answer’ referenced before assignment.” Please, can anyone help me?

Jonathan

(not a mentor for that course)
General tip: Every time you open a notebook, you must run all of the cells in order starting from the top. That’s where the resources are imported and the workspace is built.

please post screenshot of the error encountered without posting any of the codes you wrote.

Sorry I fix this error. Thank you

1 Like