C1_W3_Assignment-Error Cell#6

Hi everyone , I’m currently working on W3 Assignment and facing an issue:

Cell #6. Can’t compile the student’s code. Error: UnboundLocalError(“local variable ‘learner_func_answer’ referenced before assignment”,)

Has anyone encountered a similar issue ?Any Guidance or suggestions would be greatly appreciated !

hi @ina_fiku

your error is pointing that one of the return function was used to recall a code before it was created.

Refer below post threads to understand on how to correct your issue

Thread comment 1

Thread comment 2

Thread comment 3

Let me know if issue still persisted, please make sure to go through each pinned comment carefully as each one points to issue could be related to your issue.

Regards
DP

Hi Prasad , the problem is still there and i can’t manage it anymore. Would it be possible for me to share the assigment with you so you can help me better ???
Thank you in advance
Ina

can you first share the screenshot of the complete error here.

Please make sure not to post any code here.

you can get a fresh copy.

Also you don’t need to click a pic from your mobile of your screen.

use keyboard :point_down:t2:

To get fresh copy, use link

Also when next time you do this exercise, do refer this link

1 Like