Week 2 Python Basics with Numpy Exercise

In the exercise while running the basic sigmoid test I’m getting the following error:

NameError Traceback (most recent call last)
in
1 print("basic_sigmoid(1) = " + str(basic_sigmoid(1)))
2
----> 3 basic_sigmoid_test(basic_sigmoid)

NameError: name ‘basic_sigmoid_test’ is not defined

I have not altered any of code syntax. Please guide further.

Hi @Pushkar_Chaudhary ,

Welcome to the community.

There should these two lines of code at the top of the cell:

import math
from public_tests import *

basic_sigmoid_test() is defined in the file public_tests. If in anyway these two lines are modified, that would cause the file failed to be imported, resulting in the nameError problem.