Error in graded assignment lab

Hello everyone I keep getting this same error in the graded assignment lab it says, Cell #8. Can’t compile the student’s code. Error: NameError(“name ‘g’ is not defined”). The thing is that I included g even when returning it would anyone be able to help me with this?

In this assignment, ‘g’ is only a local variable that is used to return a value from the sigmoid() function.

You shouldn’t use ‘g’ anywhere in your code except inside the sigmoid() function.