C1_W3_Assignment-Error Cell#6

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